skipcheck

TM1 client · Docs · Errors

Tm1ProtocolException

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

TM1's response couldn't be read: malformed or truncated JSON, an unexpected shape, or an error reported in the middle of a response that started as a success. OData says a client must treat such a response as failed as a whole (Part 1 §9.5), so any items already delivered from it should be treated as incomplete.

Members

error propertyThe error TM1 reported in the response, if it reported one.
Tm1ProtocolException constructorAn exception for a response that couldn't be read.
isRetryableThe same request would get the same answer.
mayHaveAppliedThe server got the request and started answering.
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.

error

property
error: ODataError | undefined

The error TM1 reported in the response, if it reported one.

Tm1ProtocolException

constructor
constructor(message: string, error?: ODataError, method?: string, url?: string, cause?: unknown)

An exception for a response that couldn't be read. @param message what was wrong with the response; the method and URL are appended @param error the error TM1 reported in the response, if any @param method the request's HTTP method, if known @param url the request's URL, without credentials, if known @param cause the underlying failure, such as a parse error

isRetryable

isRetryable(): boolean

False: the same request would get the same answer.

mayHaveApplied

mayHaveApplied(): boolean

True: the server got the request and started answering.

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.