X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=lib%2Fmailshears%2Ferrors.rb;fp=lib%2Fmailshears%2Ferrors.rb;h=3607b8527d772fbb4fcf79f6062f21bb08accd9c;hb=314f5670531dfda9b3d708fce8b0161a098cf134;hp=0000000000000000000000000000000000000000;hpb=fd60e4e45d24c7efe5bc2710ae23f60bbb6b7be1;p=mailshears.git diff --git a/lib/mailshears/errors.rb b/lib/mailshears/errors.rb new file mode 100644 index 0000000..3607b85 --- /dev/null +++ b/lib/mailshears/errors.rb @@ -0,0 +1,20 @@ +# A generalization of PGError, and whatever MySQL and the other +# databases might eventually use. +class DatabaseError < StandardError +end + + +# Perhaps surprisingly, used to indicate that an account name is +# invalid. +class InvalidAccountError < StandardError +end + + +# Used to indicate that an account does not exist on the filesystem. +class NonexistentAccountError < StandardError +end + + +# Used to indicate that a domain does not exist on the filesystem. +class NonexistentDomainError < StandardError +end