X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fcommon%2Ferrors.rb;h=bcae691f9c3fbc7405558ddd82ecb3e883f9a8f4;hp=3607b8527d772fbb4fcf79f6062f21bb08accd9c;hb=2b0b374200d46bc2219299ff7ab67fea2e0b9d03;hpb=c6cab6b71770d14dad1115db90a00b990c44a58d diff --git a/lib/common/errors.rb b/lib/common/errors.rb index 3607b85..bcae691 100644 --- a/lib/common/errors.rb +++ b/lib/common/errors.rb @@ -4,17 +4,16 @@ class DatabaseError < StandardError end -# Perhaps surprisingly, used to indicate that an account name is -# invalid. -class InvalidAccountError < StandardError +# Username is syntactically invalid. +class InvalidUserError < StandardError end -# Used to indicate that an account does not exist on the filesystem. -class NonexistentAccountError < StandardError +# Used to indicate that an user does not exist. +class NonexistentUserError < StandardError end -# Used to indicate that a domain does not exist on the filesystem. +# Used to indicate that a domain does not exist. class NonexistentDomainError < StandardError end