22 lines
428 B
Python
22 lines
428 B
Python
"""Custom exceptions for the application."""
|
|
|
|
|
|
class AppException(Exception):
|
|
"""Base exception for the application."""
|
|
pass
|
|
|
|
|
|
class DatabaseException(AppException):
|
|
"""Exception for database errors."""
|
|
pass
|
|
|
|
|
|
class AuthenticationException(AppException):
|
|
"""Exception for authentication errors."""
|
|
pass
|
|
|
|
|
|
class AuthorizationException(AppException):
|
|
"""Exception for authorization errors."""
|
|
pass
|