Class Tm1TransportException

All Implemented Interfaces:
Serializable

public final class Tm1TransportException extends Tm1Exception
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.

See Also:
  • Constructor Details

    • Tm1TransportException

      public Tm1TransportException(Tm1TransportException.Phase phase, boolean idempotent, String method, String url, @Nullable 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
  • Method Details

    • isRetryable

      public boolean isRetryable()
      Connect failures are always retryable; response failures only for idempotent requests.
      Specified by:
      isRetryable in class Tm1Exception
      Returns:
      true if a retry could succeed
    • mayHaveApplied

      public boolean mayHaveApplied()
      False only if the request was never sent.
      Specified by:
      mayHaveApplied in class Tm1Exception
      Returns:
      false only if TM1 certainly didn't act on the request
    • phase

      How far the request got.
      Returns:
      the phase the request failed in