skipcheck

TM1 client · Docs · Errors

Tm1ApiError

from skipcheck_tm1 import Tm1ApiError

TM1 answered with an error status. Carries the status, the parsed OData error and what it means (kind). The subclass follows from the kind first and the status second, so a "not found" TM1 reports as a 400 is still a Tm1NotFoundError.

Members

__init__ constructor
of staticThe exception for a refusal, of the class its kind (by classifier) calls for.
of_kind staticThe exception for a refusal of a known kind (Java's other of).
is_retryableTrue for statuses where trying again later may work.
may_have_appliedFalse for client errors (4xx), which TM1 rejected; true for server errors, except 501.
statusThe HTTP status.
kindWhat the error means.
errorThe OData error body, or None if the response didn't have one.
method
url

__init__

constructor
__init__(status: int, kind: Tm1ErrorKind, error: ODataError | None, method: str, url: str)

of

static
of(status: int, error: ODataError | None, method: str, url: str, classifier: Tm1ErrorClassifier | None = None) -> Tm1ApiError

The exception for a refusal, of the class its kind (by classifier) calls for.

of_kind

static
of_kind(status: int, kind: Tm1ErrorKind, error: ODataError | None, method: str, url: str) -> Tm1ApiError

The exception for a refusal of a known kind (Java's other of).

is_retryable

is_retryable() -> bool

True for statuses where trying again later may work: 429, 502, 503 and 504.

may_have_applied

may_have_applied() -> bool

False for client errors (4xx), which TM1 rejected; true for server errors, except 501.

status

status

The HTTP status.

kind

kind

What the error means.

error

error

The OData error body, or None if the response didn't have one.

method

method

url

url