skipcheck

TM1 client · Docs · Errors

Tm1Exception

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

Something went wrong talking to TM1. The root of all the client's exceptions; unchecked.

Members

isRetryableWhether sending the same request again could succeed, such as after a timeout or a 503.
mayHaveAppliedWhether the request may have taken effect on TM1 even though it failed.
methodThe request's HTTP method, or null if not known.
urlThe 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

true if 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

false only 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.