public interface ExceptionMapper
DefaultRequestDispatcher to act on unhandled exceptions encountered during request processing.
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 input containing the RequestEnvelope, AttributesManager,
ServiceClientFactory, ResponseBuilder,
and other utilities.throwable - the exception that was originally thrownCopyright © Amazon.com, Inc. or its affiliates. All Rights Reserved.