| Modifier and Type | Field and Description |
|---|---|
String |
exceptionMessage
Message of associated exception or
null. |
String |
exceptionStackTrace
Full stack trace of associated exception or
null. |
String |
message
Associated message.
|
String |
statusClass
HTTP status class.
|
int |
statusCode
HTTP status code of the response.
|
String |
statusReasonPhrase
HTTP status reason phrase.
|
| Constructor and Description |
|---|
ErrorReport() |
ErrorReport(Throwable t,
int status) |
ErrorReport(Throwable ex,
Response.Status status,
String message) |
ErrorReport(WuiException ex) |
public int statusCode
Response.Status#getStatusCode()public String statusReasonPhrase
Response.Status#getReasonPhrase()public String statusClass
Response.Familypublic String message
exceptionMessage: for example when a ParamConverter
fails with a WuiException it is usually packed in a wrapping exception by the framework. This field
holds the message of the original WuiException.
See Throwable.getMessage()public String exceptionMessage
null.
In some cases this message might differ from message: for example when a ParamConverter
fails with a WuiException it is usually packed in a wrapping exception by the framework. This field
holds the message of the wrapping final Exception.public String exceptionStackTrace
null.
When not null this is a multi line String containing the full stack trace.
See Throwable.printStackTrace() and ExceptionUtils.getStackTrace(java.lang.Throwable).public ErrorReport()
public ErrorReport(Throwable ex, Response.Status status, String message)
public ErrorReport(WuiException ex)
public ErrorReport(Throwable t, int status)