skipcheck

TM1 client · Docs · Errors

Tm1AuthenticationException

import { Tm1AuthenticationException } from "@skipcheck/tm1-client";

Not logged in, the session expired, or the credentials were refused (Tm1ErrorKind.CredentialRejected).

Members

status property
kind property
error propertyTM1's error, when the response had one.
of staticThe exception for a refused request.
fromBody static@internal The exception for an error status and its body (JSON or TM1's plain text).
isRetryable429, 502, 503 and 504.
mayHaveAppliedA 5xx other than 501.
method propertyThe request's HTTP method, when the failure is a request's.
url propertyThe request's URL, when the failure is a request's.

status

property
readonly status: number

kind

property
readonly kind: Tm1ErrorKind

error

property
readonly error: ODataError | undefined

TM1's error, when the response had one.

of

static
static of(status: number, kindOrClassifier: Tm1ErrorKind | Tm1ErrorClassifier, error: ODataError | undefined, method: string, url: string): Tm1ApiException

The exception for a refused request: its kind given, or from classifier; of the class the kind calls for.

fromBody

static
static 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(): boolean

429, 502, 503 and 504: TM1 (or a proxy before it) is busy or restarting.

mayHaveApplied

mayHaveApplied(): boolean

A 5xx other than 501: TM1 may have failed after applying the change.

method

property
method: string | undefined

The request's HTTP method, when the failure is a request's.

url

property
url: string | undefined

The request's URL, when the failure is a request's.