From 1af774dcb707d94b70bdd310880d7aec6d842a2f Mon Sep 17 00:00:00 2001 From: Matt Wright Date: Thu, 23 Aug 2012 12:54:46 -0400 Subject: [PATCH] Remove unused exceptions --- flask_security/exceptions.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/flask_security/exceptions.py b/flask_security/exceptions.py index 06420f4..47be66b 100644 --- a/flask_security/exceptions.py +++ b/flask_security/exceptions.py @@ -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 """