Skip to content

Module stac_fastapi.types.errors

stac_fastapi.types.errors module.

Classes

ConflictError

class ConflictError(
    /,
    *args,
    **kwargs
)

Database conflict.

Ancestors (in MRO)

  • stac_fastapi.types.errors.StacApiError
  • builtins.Exception
  • builtins.BaseException

Class variables

args

Methods

with_traceback

def with_traceback(
    ...
)

Exception.with_traceback(tb) --

set self.traceback to tb and return self.

DatabaseError

class DatabaseError(
    /,
    *args,
    **kwargs
)

Generic database errors.

Ancestors (in MRO)

  • stac_fastapi.types.errors.StacApiError
  • builtins.Exception
  • builtins.BaseException

Class variables

args

Methods

with_traceback

def with_traceback(
    ...
)

Exception.with_traceback(tb) --

set self.traceback to tb and return self.

ForeignKeyError

class ForeignKeyError(
    /,
    *args,
    **kwargs
)

Foreign key error (collection does not exist).

Ancestors (in MRO)

  • stac_fastapi.types.errors.StacApiError
  • builtins.Exception
  • builtins.BaseException

Class variables

args

Methods

with_traceback

def with_traceback(
    ...
)

Exception.with_traceback(tb) --

set self.traceback to tb and return self.

InvalidQueryParameter

class InvalidQueryParameter(
    /,
    *args,
    **kwargs
)

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

Ancestors (in MRO)

  • stac_fastapi.types.errors.StacApiError
  • builtins.Exception
  • builtins.BaseException

Class variables

args

Methods

with_traceback

def with_traceback(
    ...
)

Exception.with_traceback(tb) --

set self.traceback to tb and return self.

NotFoundError

class NotFoundError(
    /,
    *args,
    **kwargs
)

Resource not found.

Ancestors (in MRO)

  • stac_fastapi.types.errors.StacApiError
  • builtins.Exception
  • builtins.BaseException

Class variables

args

Methods

with_traceback

def with_traceback(
    ...
)

Exception.with_traceback(tb) --

set self.traceback to tb and return self.

StacApiError

class StacApiError(
    /,
    *args,
    **kwargs
)

Generic API error.

Ancestors (in MRO)

  • builtins.Exception
  • builtins.BaseException

Descendants

  • stac_fastapi.types.errors.ConflictError
  • stac_fastapi.types.errors.NotFoundError
  • stac_fastapi.types.errors.ForeignKeyError
  • stac_fastapi.types.errors.DatabaseError
  • stac_fastapi.types.errors.InvalidQueryParameter

Class variables

args

Methods

with_traceback

def with_traceback(
    ...
)

Exception.with_traceback(tb) --

set self.traceback to tb and return self.