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 property | The error TM1 reported in the response, if it reported one. |
Tm1ProtocolException constructor | An exception for a response that couldn't be read. |
isRetryable | The same request would get the same answer. |
mayHaveApplied | The server got the request and started answering. |
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. |
error
propertyerror: ODataError | undefinedThe error TM1 reported in the response, if it reported one.
Tm1ProtocolException
constructorconstructor(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(): booleanFalse: the same request would get the same answer.
mayHaveApplied
mayHaveApplied(): booleanTrue: the server got the request and started answering.
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.