Skip to content

orcalib.exceptions#

OrcaException #

OrcaException(message, content=None)

Bases: Exception

Base exception type for OrcaLib

Parameters:

  • message (str) –

    The error message

  • content (None | str, default: None ) –

    The http content of the request if available

OrcaNotFoundException #

OrcaNotFoundException(message, content=None)

Bases: OrcaException

Exception raised when a resource is not found.

Parameters:

  • message (str) –

    The error message

  • content (None | str, default: None ) –

    The http content of the request if available

OrcaUnauthenticatedException #

OrcaUnauthenticatedException(message, content=None)

Bases: OrcaException

Exception raised when a request is made without an authentication token.

Parameters:

  • message (str) –

    The error message

  • content (None | str, default: None ) –

    The http content of the request if available

OrcaUnauthorizedException #

OrcaUnauthorizedException(message, content=None)

Bases: OrcaException

Exception raised when a request is made without the proper permissions.

Parameters:

  • message (str) –

    The error message

  • content (None | str, default: None ) –

    The http content of the request if available

OrcaBadRequestException #

OrcaBadRequestException(message, content=None)

Bases: OrcaException

Exception raised when a request is made with invalid parameters.

Parameters:

  • message (str) –

    The error message

  • content (None | str, default: None ) –

    The http content of the request if available