exceptions.FastAPIChameleonException
Base class for every error raised by fastapi-chameleon.
Usage
exceptions.FastAPIChameleonException()Raised directly for configuration and rendering problems, such as calling global_init() with a missing or invalid template folder, rendering before global_init() has run, or returning an unsupported type from a decorated view. The control-flow exceptions below subclass it, so catching this type catches them all.
Examples
try:
fastapi_chameleon.global_init(settings.template_folder)
except FastAPIChameleonException as e:
raise SystemExit(f'Template folder problem: {e}')