Skip to content

errors

titiler.core.errors

Titiler error classes.

BadRequestError

Bases: TilerError

Bad request error.

TileNotFoundError

Bases: TilerError

Tile not found error.

TilerError

Bases: Exception

Base exception class.

add_exception_handlers

add_exception_handlers(app: FastAPI, status_codes: Dict[Type[Exception], int]) -> None

Add exception handlers to the FastAPI app.

exception_handler_factory

exception_handler_factory(status_code: int) -> Callable

Create a FastAPI exception handler from a status code.