public class ServerException
extends java.lang.RuntimeException
Modifier and Type | Class and Description |
---|---|
static class |
ServerException.Builder |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<RequestError> |
getError()
Get the RequestError for this exception.
|
java.lang.Integer |
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 ServerException.Builder |
newBuilder()
New Builder for a ServerException instance.
|
java.lang.String |
toString() |
public static ServerException.Builder newBuilder()
public java.lang.String getStatusText()
public java.lang.Integer getStatusCode()
public java.util.Optional<RequestError> getError()
public java.lang.String toString()
toString
in class java.lang.Throwable