af-fastapi-exceptions 0.0.2__tar.gz → 0.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {af_fastapi_exceptions-0.0.2 → af_fastapi_exceptions-0.0.3}/PKG-INFO +1 -1
- {af_fastapi_exceptions-0.0.2 → af_fastapi_exceptions-0.0.3}/pyproject.toml +1 -1
- {af_fastapi_exceptions-0.0.2 → af_fastapi_exceptions-0.0.3}/src/allfly/fastapi/exceptions/exceptions.py +4 -0
- {af_fastapi_exceptions-0.0.2 → af_fastapi_exceptions-0.0.3}/README.md +0 -0
- {af_fastapi_exceptions-0.0.2 → af_fastapi_exceptions-0.0.3}/src/allfly/fastapi/exceptions/__init__.py +0 -0
- {af_fastapi_exceptions-0.0.2 → af_fastapi_exceptions-0.0.3}/src/allfly/fastapi/exceptions/middleware.py +0 -0
- {af_fastapi_exceptions-0.0.2 → af_fastapi_exceptions-0.0.3}/src/allfly/fastapi/exceptions/py.typed +0 -0
|
@@ -45,6 +45,9 @@ class EntityNotFoundError(ServiceError):
|
|
|
45
45
|
status_code = status.HTTP_404_NOT_FOUND
|
|
46
46
|
super().__init__(message, status_code)
|
|
47
47
|
|
|
48
|
+
class EntityNotFoundWarning(ServiceWarning):
|
|
49
|
+
def __init__(self, message="Entity not found"):
|
|
50
|
+
super().__init__(message, status.HTTP_404_NOT_FOUND)
|
|
48
51
|
|
|
49
52
|
class ResourceConflictError(ServiceError):
|
|
50
53
|
def __init__(self, message="Request creates a conflict"):
|
|
@@ -68,3 +71,4 @@ class DownstreamServiceError(ServiceError):
|
|
|
68
71
|
def __init__(self, message="Downstream service error"):
|
|
69
72
|
status_code = status.HTTP_502_BAD_GATEWAY
|
|
70
73
|
super().__init__(message, status_code)
|
|
74
|
+
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{af_fastapi_exceptions-0.0.2 → af_fastapi_exceptions-0.0.3}/src/allfly/fastapi/exceptions/py.typed
RENAMED
|
File without changes
|