From: Michael Orlitzky Date: Tue, 13 Jul 2010 19:46:33 +0000 (-0400) Subject: Added three new error classes: InvalidAccountError, NonexistentAccountError, and... X-Git-Tag: 0.0.1~139 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=e71a90e98f5627f333eef77d1a3502ebb28cb54c;p=mailshears.git Added three new error classes: InvalidAccountError, NonexistentAccountError, and NonexistentDomainError. --- 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