Tm1Exception
import io.skipcheck.tm1.client.error.Tm1Exception;Something went wrong talking to TM1. The root of all the client's exceptions; unchecked.
Tm1ApiException: TM1 answered with an error.Tm1TransportException: no complete answer, e.g. connection refused or timed out.Tm1ProtocolException: an answer the client couldn't read, including errors that happened after TM1 had started a successful response.
Members
isRetryable | Whether sending the same request again could succeed, such as after a timeout or a 503. |
mayHaveApplied | Whether the request may have taken effect on TM1 even though it failed. |
method | The request's HTTP method, or null if not known. |
url | The request's URL, never including credentials, or null if not known. |
isRetryable
boolean isRetryable()Whether sending the same request again could succeed, such as after a timeout or a 503.
Returns
trueif a retry could succeed
mayHaveApplied
boolean mayHaveApplied()Whether the request may have taken effect on TM1 even though it failed. False only when TM1 certainly didn't act on it, such as a connection that was never made, or a request it rejected. Check this before retrying anything that isn't idempotent, like running a process.
Returns
falseonly if TM1 certainly didn't act on the request
method
String method() The request's HTTP method, or null if not known.
Returns
- the HTTP method, or
null
url
String url() The request's URL, never including credentials, or null if not known.
Returns
- the URL, or
null
Also in the Javadoc.