Exception ApiException (2.9.0)

public class ApiException extends RuntimeException

Represents an exception thrown during an RPC call.

Constructors

ApiException(String message, Throwable cause, StatusCode statusCode, boolean retryable)

public ApiException(String message, Throwable cause, StatusCode statusCode, boolean retryable)
Parameters
NameDescription
messageString
causeThrowable
statusCodeStatusCode
retryableboolean

ApiException(Throwable cause, StatusCode statusCode, boolean retryable)

public ApiException(Throwable cause, StatusCode statusCode, boolean retryable)
Parameters
NameDescription
causeThrowable
statusCodeStatusCode
retryableboolean

Methods

getStatusCode()

public StatusCode getStatusCode()

Returns the status code of the underlying exception.

Returns
TypeDescription
StatusCode

isRetryable()

public boolean isRetryable()

Returns whether the failed request can be retried.

Returns
TypeDescription
boolean