public abstract class WuiException extends RuntimeException
ErrorReport
to be returned as a REST response in case of an error.
Mapping is done by the registered WuiExceptionMapper
.Modifier | Constructor and Description |
---|---|
protected |
WuiException(String message)
Construct with a message.
|
protected |
WuiException(String message,
Throwable cause)
Construct with a message and a cause.
|
Modifier and Type | Method and Description |
---|---|
abstract Response.Status |
getStatus()
Associated status.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected WuiException(String message)
message
- Message passed to RuntimeException.RuntimeException(java.lang.String)
protected WuiException(String message, Throwable cause)
message
- Message passed to RuntimeException.RuntimeException(java.lang.String, java.lang.Throwable)
cause
- Cause passed to RuntimeException.RuntimeException(java.lang.String, java.lang.Throwable)
public abstract Response.Status getStatus()