]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - src/errors.rb
Added three new error classes: InvalidAccountError, NonexistentAccountError, and...
[mailshears.git] / src / errors.rb
index a930a71a800c2391b7e87d4ea14155f204e747b3..3607b8527d772fbb4fcf79f6062f21bb08accd9c 100644 (file)
@@ -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