ErrorReport Data Type

Response in case of an error. In case of an error the registered WuiExceptionMapper will create a Response containing the proper HTTP status and an instance of this class as a JSON.

Properties
name data type description
statusCode number HTTP status code of the response. See Response.Status#getStatusCode()
statusReasonPhrase string HTTP status reason phrase. See Response.Status#getReasonPhrase()
statusClass string HTTP status class. See Response.Family
message string Associated message. In some cases this message might differ from 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()
exceptionMessage string Message of associated exception or 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.
exceptionStackTrace string Full stack trace of associated exception or null. When not null this is a multi line String containing the full stack trace. See Throwable#printStackTrace() and ExceptionUtils#getStackTrace(java.lang.Throwable).

Example

{
  "statusCode" : 12345,
  "statusReasonPhrase" : "...",
  "statusClass" : "...",
  "message" : "...",
  "exceptionMessage" : "...",
  "exceptionStackTrace" : "..."
}