public class MappableException
extends javax.ws.rs.ProcessingException
Response
instance.
The runtime will catch such exceptions and attempt to map the cause
exception to a registered ExceptionMapper
that
provides an appropriate Response
instance.
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
MappableException(java.lang.String message,
java.lang.Throwable cause)
Construct a new mappable exception with the supplied message and cause.
|
MappableException(java.lang.Throwable cause)
Construct a mappable container exception.
|
Modifier and Type | Method and Description |
---|---|
private static java.lang.Throwable |
unwrap(java.lang.Throwable cause) |
private static final long serialVersionUID
public MappableException(java.lang.Throwable cause)
cause
- the cause. If the cause is an instance of
MappableException
then the cause of this exception
will be obtained by recursively searching though the exception
causes until a cause is obtained that is not an instance of
MappableException
.public MappableException(java.lang.String message, java.lang.Throwable cause)
message
- the exception message.cause
- the exception cause.