43 lines
1005 B
Python
43 lines
1005 B
Python
"""
|
|
Authentication-related exceptions for the auth system
|
|
"""
|
|
|
|
class AuthServiceError(Exception):
|
|
"""Base exception for authentication service errors"""
|
|
pass
|
|
|
|
class UserCreationError(Exception):
|
|
"""Exception for user creation failures"""
|
|
pass
|
|
|
|
class RegistrationError(Exception):
|
|
"""Exception for registration failures"""
|
|
pass
|
|
|
|
class PaymentOrchestrationError(Exception):
|
|
"""Exception for payment orchestration failures"""
|
|
pass
|
|
|
|
class LoginError(Exception):
|
|
"""Exception for login failures"""
|
|
pass
|
|
|
|
class TokenError(Exception):
|
|
"""Exception for token-related errors"""
|
|
pass
|
|
|
|
class PermissionError(Exception):
|
|
"""Exception for permission-related errors"""
|
|
pass
|
|
|
|
class UserNotFoundError(Exception):
|
|
"""Exception for user not found errors"""
|
|
pass
|
|
|
|
class EmailVerificationError(Exception):
|
|
"""Exception for email verification failures"""
|
|
pass
|
|
|
|
class PasswordResetError(Exception):
|
|
"""Exception for password reset failures"""
|
|
pass |