Class MappableException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.ws.rs.ProcessingException
-
- org.glassfish.jersey.server.internal.process.MappableException
-
- All Implemented Interfaces:
java.io.Serializable
public class MappableException extends javax.ws.rs.ProcessingException
A runtime exception that contains a cause, a checked or runtime exception, that may be mapped to aResponse
instance.The runtime will catch such exceptions and attempt to map the cause exception to a registered
ExceptionMapper
that provides an appropriateResponse
instance.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.lang.Throwable
unwrap(java.lang.Throwable cause)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MappableException
public MappableException(java.lang.Throwable cause)
Construct a mappable container exception.- Parameters:
cause
- the cause. If the cause is an instance ofMappableException
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 ofMappableException
.
-
MappableException
public MappableException(java.lang.String message, java.lang.Throwable cause)
Construct a new mappable exception with the supplied message and cause.- Parameters:
message
- the exception message.cause
- the exception cause.
-
-