]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/common/errors.rb
Clean up user/domain describing in the plugins.
[mailshears.git] / lib / common / errors.rb
index d0bcfe200ef14c187c29ac6bfe26ba8cb3be0be6..7a2fbba565c035c7584972c3de211b0acf4ce4d2 100644 (file)
@@ -4,17 +4,24 @@ class DatabaseError < StandardError
 end
 
 
-# Perhaps surprisingly, used to indicate that an user name is
-# invalid.
+# Username is syntactically invalid.
 class InvalidUserError < StandardError
 end
 
+# Domain is syntactically invalid.
+class InvalidDomainError < StandardError
+end
+
 
-# Used to indicate that an user does not exist on the filesystem.
+# Used to indicate that an user does not exist.
 class NonexistentUserError < StandardError
 end
 
-
-# Used to indicate that a domain does not exist on the filesystem.
+# 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