Remove unused exceptions

This commit is contained in:
Matt Wright
2012-08-23 12:54:46 -04:00
parent b65b717fbc
commit 1af774dcb7
-21
View File
@@ -22,12 +22,6 @@ class BadCredentialsError(SecurityError):
"""
class AuthenticationError(SecurityError):
"""Raised when an authentication attempt fails due to invalid configuration
or an unknown reason.
"""
class UserNotFoundError(SecurityError):
"""Raised by a user datastore when there is an attempt to find a user by
their identifier, often username or email, and the user is not found.
@@ -40,21 +34,6 @@ class RoleNotFoundError(SecurityError):
"""
class UserDatastoreError(SecurityError):
"""Raised when a user datastore experiences an unexpected error
"""
class UserCreationError(SecurityError):
"""Raised when an error occurs when creating a user
"""
class RoleCreationError(SecurityError):
"""Raised when an error occurs when creating a role
"""
class ConfirmationError(SecurityError):
"""Raised when an confirmation error occurs
"""