Initial commit
This commit is contained in:
21
backend/app/core/exceptions.py
Normal file
21
backend/app/core/exceptions.py
Normal file
@@ -0,0 +1,21 @@
|
||||
"""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
|
||||
Reference in New Issue
Block a user