skipcheck

TM1 client · Docs · Errors

Tm1ProtocolException

import io.skipcheck.tm1.client.error.Tm1ProtocolException;

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 constructorCreates an exception for a response that couldn't be read.
isRetryable
mayHaveAppliedThe server got the request and started answering.
errorThe error TM1 reported in the response, if it reported one.

Tm1ProtocolException

constructor
Tm1ProtocolException(String message, ODataError error, String method, String url, Throwable cause)

Creates 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

isRetryable

boolean isRetryable()

mayHaveApplied

boolean mayHaveApplied()

True: the server got the request and started answering.

error

ODataError error()

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

Returns

the error, or null

Also in the Javadoc.