]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/common/errors.rb
Overhaul everything to get consistent error reports.
[mailshears.git] / lib / common / errors.rb
index bcae691f9c3fbc7405558ddd82ecb3e883f9a8f4..7a2fbba565c035c7584972c3de211b0acf4ce4d2 100644 (file)
@@ -8,12 +8,20 @@ end
 class InvalidUserError < StandardError
 end
 
+# Domain is syntactically invalid.
+class InvalidDomainError < StandardError
+end
+
 
 # Used to indicate that an user does not exist.
 class NonexistentUserError < StandardError
 end
 
-
 # Used to indicate that a domain does not exist.
 class NonexistentDomainError < StandardError
 end
+
+
+# When you try to rename a user on top of one that already exists.
+class UserAlreadyExistsError < StandardError
+end