public class DefaultExceptionMapper extends Object implements ExceptionMapper
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultExceptionMapper.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected List<ExceptionHandler> |
exceptionHandlers |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultExceptionMapper(List<ExceptionHandler> exceptionHandlers) |
| 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.
|
protected final List<ExceptionHandler> exceptionHandlers
protected DefaultExceptionMapper(List<ExceptionHandler> exceptionHandlers)
public static DefaultExceptionMapper.Builder builder()
public Optional<ExceptionHandler> getHandler(HandlerInput handlerInput, Throwable ex)
ExceptionMappergetHandler in interface ExceptionMapperhandlerInput - handler inputex - exceptionCopyright © 2018. All rights reserved.