Files
template-fastapi/{{project_slug}}/exceptions/base.py.jinja
Aleksei Sokol 685ea5e5f4
Some checks failed
Run linters on applied template / Python 3.13 lint and build (push) Failing after 41s
Initial commit
This is a FastAPI backend microservice template used with `copier` utility.

Features of applied template are:
- Configuration file processing logic
- Metrics and tracing (both optional) configuration available
- Debug endpoints
- Database migration commands, prepared Alembic environment
- Database usage example in ping_db endpoint
- gitea sanity check pipeline
2025-11-29 22:00:06 +03:00

11 lines
258 B
Django/Jinja

"""Base application exception class is defined here."""
class {{ProjectName}}Error(RuntimeError):
"""
Base application exception to inherit from.
"""
def __str__(self) -> str:
return "Unexpected error happened in {{project_name}}"