X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=src%2Ferrors.rb;h=3607b8527d772fbb4fcf79f6062f21bb08accd9c;hp=a930a71a800c2391b7e87d4ea14155f204e747b3;hb=e71a90e98f5627f333eef77d1a3502ebb28cb54c;hpb=1511b1d4bec6c53bcdb74fe60ee3b0fc4551b104 diff --git a/src/errors.rb b/src/errors.rb index a930a71..3607b85 100644 --- a/src/errors.rb +++ b/src/errors.rb @@ -2,3 +2,19 @@ # 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