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 constructor | An exception for a request that got no complete response. |
phase property | Where the request failed (Java's phase()). |
isRetryable | Unsent requests, and idempotent ones (GET, PUT, DELETE, HEAD), may be sent again. |
mayHaveApplied | False only if the request was never sent. |
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. |
Tm1TransportException
constructorconstructor( 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
propertyreadonly phase: "Connect" | "Response"Where the request failed (Java's phase()).
isRetryable
isRetryable(): booleanUnsent requests, and idempotent ones (GET, PUT, DELETE, HEAD), may be sent again.
mayHaveApplied
mayHaveApplied(): booleanFalse only if the request was never sent.
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.