T - A type of the exception processed by the exception mapper.public interface ExtendedExceptionMapper<T extends Throwable> extends ExceptionMapper<T>
exception mapper interface. The exception mapping
providers can extend from this interface to add jersey specific functionality to these
providers.| Modifier and Type | Method and Description |
|---|---|
boolean |
isMappable(T exception)
Determine whether this provider is able to process a supplied exception instance.
|
toResponseboolean isMappable(T exception)
This method is called only on those exception mapping providers that are able to
process the type of the exception as defined by the JAX-RS
ExceptionMapper contract. By returning false this method can reject
any given exception instance and change the default JAX-RS exception mapper
selection behaviour.
exception - exception instance which should be processed.true if the mapper is able to map the particular exception instance,
false otherwise.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.