skipcheck

TM1 client · Docs · Errors

Tm1ProtocolException

using Skipcheck.Tm1.Client.Errors;

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

Tm1ProtocolException constructorAn exception for a response that couldn't be read.
Tm1ProtocolException constructorA protocol failure that isn't a request's.
Error propertyThe error TM1 reported in the response, or null if it reported none.
IsRetryableThe same response would come back.
MayHaveAppliedTM1 had started to answer, so the request may have taken effect.
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.

Tm1ProtocolException

constructor
Tm1ProtocolException(string message, ODataError? error, string? method, string? url, Exception? cause)

An exception for a response that couldn't be read.

Parameters

message
What was wrong with the response; the method and URL are appended.
error
The error TM1 reported in the response, or null.
method
The request's HTTP method, or null if not known.
url
The request's URL, without credentials, or null if not known.
cause
The underlying failure, such as a parse error, or null.

Tm1ProtocolException

constructor
Tm1ProtocolException(string message, Exception? cause = null)

A protocol failure that isn't a request's.

Error

property
ODataError? Error

The error TM1 reported in the response, or null if it reported none.

IsRetryable

bool IsRetryable()

Never: the same response would come back.

MayHaveApplied

bool MayHaveApplied()

Always: TM1 had started to answer, so the request may have taken effect.

Method

property
string? Method

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

Url

property
string? Url

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