Titiler error classes.
None
DEFAULT_STATUS_CODES
logger
def add_exception_handlers(
app: fastapi.applications.FastAPI,
status_codes: Dict[Type[Exception], int]
) -> None
Add exception handlers to the FastAPI app.
def exception_handler_factory(
status_code: int
) -> Callable
Create a FastAPI exception handler from a status code.
class BadRequestError(
/,
*args,
**kwargs
)
- titiler.core.errors.TilerError
- builtins.Exception
- builtins.BaseException
args
def with_traceback(
...
)
Exception.with_traceback(tb) --
set self.traceback to tb and return self.
class TileNotFoundError(
/,
*args,
**kwargs
)
- titiler.core.errors.TilerError
- builtins.Exception
- builtins.BaseException
args
def with_traceback(
...
)
Exception.with_traceback(tb) --
set self.traceback to tb and return self.
class TilerError(
/,
*args,
**kwargs
)
- builtins.Exception
- builtins.BaseException
- titiler.core.errors.TileNotFoundError
- titiler.core.errors.BadRequestError
args
def with_traceback(
...
)
Exception.with_traceback(tb) --
set self.traceback to tb and return self.