Skip to content

Exceptions

matchbox.common.exceptions

Custom exceptions for Matchbox.

Classes:

MatchboxClientSettingsException

Bases: Exception

Incorrect configuration provided to client.

MatchboxUnparsedClientRequest

MatchboxUnparsedClientRequest(message: str | None = None)

Bases: Exception

The API could not parse the content of the client request.

MatchboxUnhandledServerResponse

MatchboxUnhandledServerResponse(message: str | None = None)

Bases: Exception

The API sent an unexpected response.

MatchboxSourceColumnError

Bases: Exception

Source columns diverge with the warehouse.

MatchboxSourceEngineError

Bases: Exception

Engine must be available in Source.

MatchboxSourceTableError

MatchboxSourceTableError(
    message: str | None = None,
    table_name: str | None = None,
)

Bases: Exception

Tables not found in your source data warehouse.

Attributes:

table_name instance-attribute

table_name = table_name

MatchboxServerFileError

MatchboxServerFileError(message: str | None = None)

Bases: Exception

There was a problem with file upload.

MatchboxResolutionNotFoundError

MatchboxResolutionNotFoundError(
    message: str | None = None,
    resolution_name: str | None = None,
)

Bases: Exception

Resolution not found.

Attributes:

resolution_name instance-attribute

resolution_name = resolution_name

MatchboxSourceNotFoundError

MatchboxSourceNotFoundError(
    message: str = None, address: str | None = None
)

Bases: Exception

Source not found on the server.

Attributes:

address instance-attribute

address = address

MatchboxDataNotFound

MatchboxDataNotFound(
    message: str | None = None,
    table: str | None = None,
    data: Any | None = None,
)

Bases: Exception

Data doesn’t exist in the Matchbox source table.

Attributes:

table instance-attribute

table = table

data instance-attribute

data = data

MatchboxClientFileError

MatchboxClientFileError(message: str | None = None)

Bases: Exception

There was a problem with file download.

MatchboxConnectionError

Bases: Exception

Connection to Matchbox’s backend database failed.

MatchboxDeletionNotConfirmed

MatchboxDeletionNotConfirmed(
    message: str | None = None,
    children: list[str] | None = None,
)

Bases: Exception

Deletion must be confirmed: if certain, rerun with certain=True.