org.glassfish.jersey.internal
Class MappableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.glassfish.jersey.internal.ProcessingException
org.glassfish.jersey.internal.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 a 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.
- Author:
- Paul Sandoz, Marek Potociar (marek.potociar at oracle.com)
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
MappableException
public MappableException(Throwable cause)
- Construct a mappable container exception.
- Parameters:
cause - the cause. If the cause is an instance of
MappableContainerException then the cause of this exception
will be obtained from the cause of that MappableContainerException
instance, and the process will repeat until a cause is obtained
that is not an instance of MappableContainerException.
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.