fix test and add doc
This commit is contained in:
35
src/server/exceptions/exceptions.py
Normal file
35
src/server/exceptions/exceptions.py
Normal file
@@ -0,0 +1,35 @@
|
||||
"""
|
||||
Exceptions module for Aniworld server API.
|
||||
|
||||
This module provides custom exception classes for the web API layer
|
||||
with proper HTTP status code mappings.
|
||||
"""
|
||||
from src.server.exceptions import (
|
||||
AniWorldAPIException,
|
||||
AuthenticationError,
|
||||
AuthorizationError,
|
||||
ConfigurationError,
|
||||
ConflictError,
|
||||
DatabaseError,
|
||||
DownloadError,
|
||||
NotFoundError,
|
||||
ProviderError,
|
||||
RateLimitError,
|
||||
ServerError,
|
||||
ValidationError,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"AniWorldAPIException",
|
||||
"AuthenticationError",
|
||||
"AuthorizationError",
|
||||
"ValidationError",
|
||||
"NotFoundError",
|
||||
"ConflictError",
|
||||
"RateLimitError",
|
||||
"ServerError",
|
||||
"DownloadError",
|
||||
"ConfigurationError",
|
||||
"ProviderError",
|
||||
"DatabaseError",
|
||||
]
|
||||
Reference in New Issue
Block a user