Skip to content

Exceptions

fastapi_gcp_tasks.exception

MissingParamError

MissingParamError(**ctx: object)

Bases: ValueError

Error raised when a required parameter is missing.

Source code in fastapi_gcp_tasks/exception.py
def __init__(self, **ctx: object) -> None:
    super().__init__(self.msg_template.format(**ctx))

WrongTypeError

WrongTypeError(**ctx: object)

Bases: ValueError

Error raised when a parameter is of the wrong type.

Source code in fastapi_gcp_tasks/exception.py
def __init__(self, **ctx: object) -> None:
    super().__init__(self.msg_template.format(**ctx))

BadMethodError

Bases: Exception

Error raised when an invalid method is passed to a task.