public interface ExceptionMapper
DefaultRequestDispatcher to act on unhandled exceptions. The exception mapper contains one or
more exception handlers. Handlers are accessed through the mapper to attempt to find a handler
that is compatible with the current exception.| Modifier and Type | Method and Description |
|---|---|
Optional<ExceptionHandler> |
getHandler(HandlerInput input,
Throwable throwable)
Returns a suitable exception handler to dispatch the specified exception, if one exists.
|
Optional<ExceptionHandler> getHandler(HandlerInput input, Throwable throwable)
input - handler inputthrowable - exceptionCopyright © Amazon.com, Inc. or its affiliates. All Rights Reserved.