From e71a90e98f5627f333eef77d1a3502ebb28cb54c Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 13 Jul 2010 15:46:33 -0400 Subject: [PATCH] Added three new error classes: InvalidAccountError, NonexistentAccountError, and NonexistentDomainError. --- src/errors.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 -- 2.43.2