Skip to content

skybrush_log_analyzer.errors

APIUnreachable

Bases: ApplicationErrorWithURL

The API could not be reached.

Source code in skybrush_log_analyzer/errors.py
class APIUnreachable(ApplicationErrorWithURL):
    """The API could not be reached."""

AccountUnreachable

Bases: ApplicationErrorWithURL

The account could not be reached or returned an unexpected response.

Source code in skybrush_log_analyzer/errors.py
class AccountUnreachable(ApplicationErrorWithURL):
    """The account could not be reached or returned an unexpected response."""

ApplicationError

Bases: Exception

Base class for the errors of this package.

Source code in skybrush_log_analyzer/errors.py
class ApplicationError(Exception):
    """Base class for the errors of this package."""

ApplicationErrorWithMessage

Bases: ApplicationError

Base class for the errors of this package that carry a message.

Source code in skybrush_log_analyzer/errors.py
class ApplicationErrorWithMessage(ApplicationError):
    """Base class for the errors of this package that carry a message."""

    def __init__(self, message: str) -> None:
        super().__init__(message)

    @property
    def message(self) -> str:
        """The message of the error."""
        return str(self.args[0])

message property

The message of the error.

ApplicationErrorWithURL

Bases: ApplicationErrorWithMessage

Base class for the errors of this package that concern the service at a URL.

Source code in skybrush_log_analyzer/errors.py
class ApplicationErrorWithURL(ApplicationErrorWithMessage):
    """Base class for the errors of this package that concern the service at a URL."""

    def __init__(self, message: str, *, url: str) -> None:
        super().__init__(message)
        self._url = url

    @property
    def url(self) -> str:
        """The URL of the service the error concerns."""
        return self._url

url property

The URL of the service the error concerns.

BadRequest

Bases: ApplicationErrorWithMessage

The API rejected the request with a client error status.

Source code in skybrush_log_analyzer/errors.py
class BadRequest(ApplicationErrorWithMessage):
    """The API rejected the request with a client error status."""

ConfigError

Bases: ApplicationErrorWithMessage

The config could not be read or written.

Source code in skybrush_log_analyzer/errors.py
class ConfigError(ApplicationErrorWithMessage):
    """The config could not be read or written."""

InvalidAPIKey

Bases: ApplicationErrorWithURL

The account rejected the API key.

Source code in skybrush_log_analyzer/errors.py
class InvalidAPIKey(ApplicationErrorWithURL):
    """The account rejected the API key."""

NotFound

Bases: BadRequest

The requested resource does not exist.

Source code in skybrush_log_analyzer/errors.py
class NotFound(BadRequest):
    """The requested resource does not exist."""

ResponseParsingFailed

Bases: ApplicationError

The API returned a response of unexpected format.

Source code in skybrush_log_analyzer/errors.py
class ResponseParsingFailed(ApplicationError):
    """The API returned a response of unexpected format."""

ServerError

Bases: ApplicationError

The API failed with a server error status.

Source code in skybrush_log_analyzer/errors.py
class ServerError(ApplicationError):
    """The API failed with a server error status."""

Unauthenticated

Bases: ApplicationError

No API key is configured, the client was logged out, or the API rejected the token.

Source code in skybrush_log_analyzer/errors.py
class Unauthenticated(ApplicationError):
    """No API key is configured, the client was logged out, or the API rejected the token."""

UnknownTests

Bases: ApplicationErrorWithMessage

Some of the given test names are not in the given test group.

Source code in skybrush_log_analyzer/errors.py
class UnknownTests(ApplicationErrorWithMessage):
    """Some of the given test names are not in the given test group."""