public class ClientException
extends java.lang.RuntimeException
Modifier and Type | Class and Description |
---|---|
static class |
ClientException.Builder
ClientException Builder
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<RequestError> |
getError()
Get the RequestError for this exception.
|
int |
getStatusCode()
Get the raw HTTP Status Code from the API response.
|
java.lang.String |
getStatusText()
Get the reason phrase from the API response status line.
|
static ClientException.Builder |
newBuilder()
New Builder for a ClientException instance.
|
java.lang.String |
toString() |
public static ClientException.Builder newBuilder()
public java.util.Optional<RequestError> getError()
public int getStatusCode()
public java.lang.String getStatusText()
public java.lang.String toString()
toString
in class java.lang.Throwable