brails.exceptions module
This module defines the Brails exceptions.
- exception brails.exceptions.BrailsError(message: str = 'An error occurred in the BRAILS application')
Bases:
Exception
Custom exception for specific error cases in BRAILS.
- exception brails.exceptions.NotFoundError(type_of_thing: str, name: str, where: str | None = None, append: str | None = None)
Bases:
BrailsError
Exception raised when a required entity is not found.
This exception should be used for missing elements like classes, keys, or parameters.
Note: For missing files, use the built-in FileNotFoundError instead.