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 static | The exception for a refusal, of the class its kind (by classifier) calls for. |
of_kind static | The exception for a refusal of a known kind (Java's other of). |
is_retryable | True for statuses where trying again later may work. |
may_have_applied | False for client errors (4xx), which TM1 rejected; true for server errors, except 501. |
status | The HTTP status. |
kind | What the error means. |
error | The 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
staticof(status: int, error: ODataError | None, method: str, url: str, classifier: Tm1ErrorClassifier | None = None) -> Tm1ApiErrorThe exception for a refusal, of the class its kind (by classifier) calls for.
of_kind
staticof_kind(status: int, kind: Tm1ErrorKind, error: ODataError | None, method: str, url: str) -> Tm1ApiErrorThe exception for a refusal of a known kind (Java's other of).
is_retryable
is_retryable() -> boolTrue for statuses where trying again later may work: 429, 502, 503 and 504.
may_have_applied
may_have_applied() -> boolFalse for client errors (4xx), which TM1 rejected; true for server errors, except 501.
status
statusThe HTTP status.
kind
kindWhat the error means.
error
error The OData error body, or None if the response didn't have one.
method
methodurl
url