Skip to content

errors

stac_fastapi.types.errors

stac_fastapi.types.errors module.

ConflictError

Bases: StacApiError

Database conflict.

Source code in stac_fastapi/types/errors.py
10
11
12
13
class ConflictError(StacApiError):
    """Database conflict."""

    pass

DatabaseError

Bases: StacApiError

Generic database errors.

Source code in stac_fastapi/types/errors.py
28
29
30
31
class DatabaseError(StacApiError):
    """Generic database errors."""

    pass

ForeignKeyError

Bases: StacApiError

Foreign key error (collection does not exist).

Source code in stac_fastapi/types/errors.py
22
23
24
25
class ForeignKeyError(StacApiError):
    """Foreign key error (collection does not exist)."""

    pass

InvalidQueryParameter

Bases: StacApiError

Error for unknown or invalid query parameters.

Used to capture errors that should respond according to docs.opengeospatial.org/is/17-069r3/17-069r3.html#query_parameters

Source code in stac_fastapi/types/errors.py
34
35
36
37
38
39
40
41
class InvalidQueryParameter(StacApiError):
    """Error for unknown or invalid query parameters.

    Used to capture errors that should respond according to
    http://docs.opengeospatial.org/is/17-069r3/17-069r3.html#query_parameters
    """

    pass

NotFoundError

Bases: StacApiError

Resource not found.

Source code in stac_fastapi/types/errors.py
16
17
18
19
class NotFoundError(StacApiError):
    """Resource not found."""

    pass

StacApiError

Bases: Exception

Generic API error.

Source code in stac_fastapi/types/errors.py
4
5
6
7
class StacApiError(Exception):
    """Generic API error."""

    pass