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 constructor | Creates an exception for a response that couldn't be read. |
isRetryable | |
mayHaveApplied | The server got the request and started answering. |
error | The error TM1 reported in the response, if it reported one. |
Tm1ProtocolException
constructorTm1ProtocolException(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
nullif not known url- the request's URL, without credentials, or
nullif 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.