X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fcommon%2Ferrors.rb;fp=lib%2Fcommon%2Ferrors.rb;h=3607b8527d772fbb4fcf79f6062f21bb08accd9c;hp=0000000000000000000000000000000000000000;hb=c6cab6b71770d14dad1115db90a00b990c44a58d;hpb=150ee5398c17acca8ef03b3cc48b3aa7bc1b0035 diff --git a/lib/common/errors.rb b/lib/common/errors.rb new file mode 100644 index 0000000..3607b85 --- /dev/null +++ b/lib/common/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