Tm1TransportException
import io.skipcheck.tm1.client.error.Tm1TransportException;No complete response from TM1: the connection failed, was reset, or timed out.
phase says how far the request got, which decides whether it could have
taken effect: a request that never connected didn't, one that timed out waiting for the
response may have. TM1 only answers some long operations (processes, big MDX) when they
finish, so a response timeout often means the work is still running.
Members
Tm1TransportException constructor | Creates an exception for a request that got no complete response. |
isRetryable | Connect failures are always retryable; response failures only for idempotent requests. |
mayHaveApplied | False only if the request was never sent. |
phase | How far the request got. |
Tm1TransportException
constructorTm1TransportException(Tm1TransportException.Phase phase, boolean idempotent, String method, String url, Throwable cause)Creates an exception for a request that got no complete response.
Parameters
phase- how far the request got
idempotent- whether the request is safe to repeat (GET, PUT, DELETE), which makes a response-phase failure retryable
method- the request's HTTP method
url- the request's URL, without credentials
cause- the underlying failure, or
null
isRetryable
boolean isRetryable()Connect failures are always retryable; response failures only for idempotent requests.
mayHaveApplied
boolean mayHaveApplied()False only if the request was never sent.
phase
Tm1TransportException.Phase phase()How far the request got.
Returns
- the phase the request failed in
Also in the Javadoc.