ODataError
from skipcheck_tm1.errors import ODataError An OData error response body: {"error":{"code":"278","message":"..."}}.
TM1 uses code 278 for most errors (not found, bad request, precondition failed
and not implemented alike), so the code alone rarely identifies an error. See
Tm1ErrorClassifier.
Members
code | |
message | |
target | |
details | |
inner_error | |
from_json static | The error in a parsed JSON body ({"error". |
from_text static | TM1's plain-text error. |
parse static | An error response's body. |
code
code: strmessage
message: strtarget
target: str | Nonedetails
details: tuple[ODataError, ...]inner_error
inner_error: Anyfrom_json
staticfrom_json(body: Any) -> ODataError | NoneThe error in a parsed JSON body ({"error": {...}} or the object itself), or None if it isn't one (Java's ODataError.from).
from_text
staticfrom_text(body: str) -> ODataError | NoneTM1's plain-text error: its lines but the Error: … status line, joined, at most 1000 characters (and an ellipsis).
parse
staticparse(body: bytes | str | None) -> ODataError | NoneAn error response's body: OData JSON, else plain text.