public class RequestException
extends java.io.IOException
RequestError object.| Constructor and Description |
|---|
RequestException(RequestError error,
int status)
Create request exception
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
format(FieldError error)
Format field error into human-readable message
|
java.lang.String |
formatErrors()
Format all field errors into single human-readable message.
|
RequestError |
getError()
Get error
|
java.lang.String |
getMessage() |
int |
getStatus()
Get status
|
public RequestException(RequestError error, int status)
error - status - public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic RequestError getError()
public int getStatus()
protected java.lang.String format(FieldError error)
error - public java.lang.String formatErrors()