public class DefaultExceptionMapper extends Object implements ExceptionMapper
ExceptionHandler instances in the order they were provided.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultExceptionMapper.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DefaultExceptionMapper.Builder |
builder() |
Optional<ExceptionHandler> |
getHandler(HandlerInput handlerInput,
Throwable ex)
Returns a suitable exception handler to dispatch the specified exception, if one exists.
|
public static DefaultExceptionMapper.Builder builder()
public Optional<ExceptionHandler> getHandler(HandlerInput handlerInput, Throwable ex)
ExceptionMappergetHandler in interface ExceptionMapperhandlerInput - handler input containing the RequestEnvelope, AttributesManager,
ServiceClientFactory, ResponseBuilder,
and other utilities.ex - the exception that was originally thrownCopyright © Amazon.com, Inc. or its affiliates. All Rights Reserved.