Tm1ConflictException
import { Tm1ConflictException } from "@skipcheck/tm1-client";The request conflicts with existing state: the object exists, is locked or is in use.
Members
status property | |
kind property | |
error property | TM1's error, when the response had one. |
of static | The exception for a refused request. |
fromBody static | @internal The exception for an error status and its body (JSON or TM1's plain text). |
isRetryable | 429, 502, 503 and 504. |
mayHaveApplied | A 5xx other than 501. |
method property | The request's HTTP method, when the failure is a request's. |
url property | The request's URL, when the failure is a request's. |
status
propertyreadonly status: numberkind
propertyreadonly kind: Tm1ErrorKinderror
propertyreadonly error: ODataError | undefinedTM1's error, when the response had one.
of
staticstatic of(status: number, kindOrClassifier: Tm1ErrorKind | Tm1ErrorClassifier, error: ODataError | undefined, method: string, url: string): Tm1ApiExceptionThe exception for a refused request: its kind given, or from classifier; of the class the kind calls for.
fromBody
staticstatic fromBody(status: number, body: Uint8Array | string | undefined, method: string, url: string, classifier: Tm1ErrorClassifier): Tm1ApiException@internal The exception for an error status and its body (JSON or TM1's plain text).
isRetryable
isRetryable(): boolean429, 502, 503 and 504: TM1 (or a proxy before it) is busy or restarting.
mayHaveApplied
mayHaveApplied(): booleanA 5xx other than 501: TM1 may have failed after applying the change.
method
propertymethod: string | undefinedThe request's HTTP method, when the failure is a request's.
url
propertyurl: string | undefinedThe request's URL, when the failure is a request's.