mirror of
https://github.com/d3vyce/fastapi-toolsets.git
synced 2026-03-02 09:20:47 +01:00
* feat: add sort_params helper in CrudFactory * docs: add sorting * fix: change sort_by to order_by
41 lines
1.1 KiB
Markdown
41 lines
1.1 KiB
Markdown
# `exceptions`
|
|
|
|
Here's the reference for all exception classes and handler utilities.
|
|
|
|
You can import them directly from `fastapi_toolsets.exceptions`:
|
|
|
|
```python
|
|
from fastapi_toolsets.exceptions import (
|
|
ApiException,
|
|
UnauthorizedError,
|
|
ForbiddenError,
|
|
NotFoundError,
|
|
ConflictError,
|
|
NoSearchableFieldsError,
|
|
InvalidFacetFilterError,
|
|
InvalidOrderFieldError,
|
|
generate_error_responses,
|
|
init_exceptions_handlers,
|
|
)
|
|
```
|
|
|
|
## ::: fastapi_toolsets.exceptions.exceptions.ApiException
|
|
|
|
## ::: fastapi_toolsets.exceptions.exceptions.UnauthorizedError
|
|
|
|
## ::: fastapi_toolsets.exceptions.exceptions.ForbiddenError
|
|
|
|
## ::: fastapi_toolsets.exceptions.exceptions.NotFoundError
|
|
|
|
## ::: fastapi_toolsets.exceptions.exceptions.ConflictError
|
|
|
|
## ::: fastapi_toolsets.exceptions.exceptions.NoSearchableFieldsError
|
|
|
|
## ::: fastapi_toolsets.exceptions.exceptions.InvalidFacetFilterError
|
|
|
|
## ::: fastapi_toolsets.exceptions.exceptions.InvalidOrderFieldError
|
|
|
|
## ::: fastapi_toolsets.exceptions.exceptions.generate_error_responses
|
|
|
|
## ::: fastapi_toolsets.exceptions.handler.init_exceptions_handlers
|