Add subcription feature 3
This commit is contained in:
43
shared/exceptions/auth_exceptions.py
Normal file
43
shared/exceptions/auth_exceptions.py
Normal file
@@ -0,0 +1,43 @@
|
||||
"""
|
||||
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
|
||||
Reference in New Issue
Block a user