public static final class JsonErrorResponseHandler.JsonErrorResponse
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static JsonErrorResponseHandler.JsonErrorResponse |
fromResponse(HttpResponse response) |
java.lang.String |
get(java.lang.String key)
Gets value from the error body map.
|
java.lang.String |
getErrorCode()
Gets the error code
|
java.lang.String |
getMessage()
Gets the error message
|
int |
getStatusCode()
Gets the status code of the response header
|
public int getStatusCode()
public java.lang.String getErrorCode()
public java.lang.String getMessage()
public java.lang.String get(java.lang.String key)
key
- key of mappublic static JsonErrorResponseHandler.JsonErrorResponse fromResponse(HttpResponse response) throws java.io.IOException
response
- The HTTP response.java.io.IOException