FlaskChameleonNotFoundException
Raised by not_found() to signal that a view should render a 404 page.
Usage
FlaskChameleonNotFoundException(
message=None, four04template_file="errors/404.pt"
)You will rarely raise or catch this yourself. not_found() raises it from deep inside a view, the @template decorator catches it on the way out and renders its template_file with an empty model and status code 404. It only escapes if the view is not decorated, which is the one situation where you might want to catch it.
Parameters
message: str | None = None-
Optional description of the missing resource.
four04template_file: str = "errors/404.pt"- The template to render for the 404 response.
Attributes
message: str | None-
The message passed in, if any.
template_file: str- The template the decorator will render for the 404 response.