skipcheck

TM1 client · Docs · Errors

Tm1TransportException

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

No complete response from TM1: the connection failed, was reset, or timed out.

phase says how far the request got, which decides whether it could have taken effect: a request that never connected didn't, one that timed out waiting for the response may have. TM1 only answers some long operations (processes, big MDX) when they finish, so a response timeout often means the work is still running.

Members

Tm1TransportException constructorAn exception for a request that got no complete response.
phase propertyWhere the request failed (Java's phase()).
isRetryableUnsent requests, and idempotent ones (GET, PUT, DELETE, HEAD), may be sent again.
mayHaveAppliedFalse only if the request was never sent.
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.

Tm1TransportException

constructor
constructor( readonly phase: "Connect" | "Response", private readonly idempotent: boolean, method: string, url: string, cause?: unknown, )

An exception for a request that got no complete response. @param phase how far the request got

Parameters

idempotent
whether the request is safe to repeat (GET, PUT, DELETE), which makes a response-phase failure retryable @param method the request's HTTP method @param url the request's URL, without credentials @param cause the underlying failure, if any

phase

property
readonly phase: "Connect" | "Response"

Where the request failed (Java's phase()).

isRetryable

isRetryable(): boolean

Unsent requests, and idempotent ones (GET, PUT, DELETE, HEAD), may be sent again.

mayHaveApplied

mayHaveApplied(): boolean

False only if the request was never sent.

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.