Skip to content

errors

tipg.errors

tipg.errors: Error classes.

FunctionDirectoryDoesNotExist

Bases: TiPgError

Function Directory Is Set But Does Not Exist.

InvalidBBox

Bases: TiPgError

Invalid bounding box coordinates.

InvalidDatetime

Bases: TiPgError

Invalid datetime.

InvalidDatetimeColumnName

Bases: TiPgError

Invalid datetime column name.

InvalidGeometryColumnName

Bases: TiPgError

Invalid geometry column name.

InvalidLimit

Bases: TiPgError

Invalid Limit.

InvalidPropertyName

Bases: TiPgError

Invalid property/column name.

MissingCollectionCatalog

Bases: TiPgError

collection_catalog not registered in the application state.

MissingDatetimeColumn

Bases: TiPgError

Table has no datetime column.

MissingFunctionParameter

Bases: TiPgError

Missing Function Parameter.

MissingGeometryColumn

Bases: TiPgError

Table has no geometry column.

NoPrimaryKey

Bases: TiPgError

Table has no primary key.

NotFound

Bases: TiPgError

Invalid table name.

TiPgError

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.