mirror of
https://github.com/wassname/flask-security.git
synced 2026-06-27 16:10:11 +08:00
Remove unused exceptions
This commit is contained in:
@@ -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
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user