Class MappableException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.ws.rs.ProcessingException
-
- org.glassfish.jersey.server.internal.process.MappableException
-
- All Implemented Interfaces:
Serializable
public class MappableException extends ProcessingException
A runtime exception that contains a cause, a checked or runtime exception, that may be mapped to aResponseinstance.The runtime will catch such exceptions and attempt to map the cause exception to a registered
ExceptionMapperthat provides an appropriateResponseinstance.- Author:
- Paul Sandoz, Marek Potociar
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MappableException(String message, Throwable cause)Construct a new mappable exception with the supplied message and cause.MappableException(Throwable cause)Construct a mappable container exception.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MappableException
public MappableException(Throwable cause)
Construct a mappable container exception.- Parameters:
cause- the cause. If the cause is an instance ofMappableExceptionthen 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.
-
-