Modifier and Type | Field and Description |
---|---|
protected List<GenericExceptionHandler<Input,Output>> |
AbstractSkillBuilder.exceptionHandlers
List of exception handlers.
|
Modifier and Type | Method and Description |
---|---|
Self |
AbstractSkillBuilder.addExceptionHandler(GenericExceptionHandler<Input,Output> handler)
Add an exception handler to Skill config.
|
Self |
AbstractSkillBuilder.addExceptionHandlers(GenericExceptionHandler<Input,Output>... handler)
Add multiple exception handlers to Skill config.
|
Modifier and Type | Method and Description |
---|---|
Self |
AbstractSkillBuilder.addExceptionHandlers(List<GenericExceptionHandler<Input,Output>> handlers)
Add multiple exception handlers to Skill config.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ExceptionHandler
A handler for handling one or more types of exceptions thrown during the request processing lifecycle.
|
Constructor and Description |
---|
DefaultExceptionMapper(List<GenericExceptionHandler<HandlerInput,Optional<Response>>> exceptionHandlers)
Deprecated.
Constructor for DefaultExceptionMapper.
|
Constructor and Description |
---|
DefaultRequestHandlerChain(GenericRequestHandler<HandlerInput,Optional<Response>> handler,
List<GenericRequestInterceptor<HandlerInput>> requestInterceptors,
List<GenericResponseInterceptor<HandlerInput,Optional<Response>>> responseInterceptors,
List<GenericExceptionHandler<HandlerInput,Optional<Response>>> exceptionHandlers)
Deprecated.
Constructor to build an instance of DefaultRequestHandlerChain.
|
Modifier and Type | Method and Description |
---|---|
Optional<GenericExceptionHandler<Input,Output>> |
GenericExceptionMapper.getHandler(Input input,
Throwable throwable)
Returns a suitable exception handler to dispatch the specified exception, if one exists.
|
Modifier and Type | Field and Description |
---|---|
protected List<GenericExceptionHandler<Input,Output>> |
BaseExceptionMapper.exceptionHandlers
List of exception handlers.
|
protected List<GenericExceptionHandler<Input,Output>> |
BaseExceptionMapper.Builder.exceptionHandlers
List of exception handlers.
|
Modifier and Type | Method and Description |
---|---|
Optional<GenericExceptionHandler<Input,Output>> |
BaseExceptionMapper.getHandler(Input input,
Throwable ex)
Returns a suitable exception handler to dispatch the specified exception, if one exists.
|
Modifier and Type | Method and Description |
---|---|
Self |
BaseExceptionMapper.Builder.addExceptionHandler(GenericExceptionHandler<Input,Output> handler)
Adds an exception handler to the end of the handler chain.
|
Modifier and Type | Method and Description |
---|---|
Self |
BaseExceptionMapper.Builder.withExceptionHandlers(List<GenericExceptionHandler<Input,Output>> exceptionHandlers)
List of exception handlers to use in the handler chain.
|
Constructor and Description |
---|
BaseExceptionMapper(List<GenericExceptionHandler<Input,Output>> exceptionHandlers)
Constructor of BaseExceptionMapper.
|
Modifier and Type | Method and Description |
---|---|
List<GenericExceptionHandler<Input,Output>> |
GenericRequestHandlerChain.getExceptionHandlers() |
Modifier and Type | Field and Description |
---|---|
protected List<GenericExceptionHandler<Input,Output>> |
BaseRequestHandlerChain.exceptionHandlers
List of exception handlers.
|
protected List<GenericExceptionHandler<Input,Output>> |
BaseRequestHandlerChain.Builder.exceptionHandlers
List of exception handlers.
|
Modifier and Type | Method and Description |
---|---|
List<GenericExceptionHandler<Input,Output>> |
BaseRequestHandlerChain.getExceptionHandlers()
.
|
Modifier and Type | Method and Description |
---|---|
Self |
BaseRequestHandlerChain.Builder.addExceptionHandler(GenericExceptionHandler<Input,Output> exceptionHandler)
Adds a single exception handler of type
GenericExceptionHandler to request handler chain. |
Modifier and Type | Method and Description |
---|---|
Self |
BaseRequestHandlerChain.Builder.withExceptionHandlers(List<GenericExceptionHandler<Input,Output>> exceptionHandlers)
Adds multiple exception handlers of type
BaseRequestHandlerChain to request handler chain. |
Constructor and Description |
---|
BaseRequestHandlerChain(GenericRequestHandler<Input,Output> handler,
List<GenericRequestInterceptor<Input>> requestInterceptors,
List<GenericResponseInterceptor<Input,Output>> responseInterceptors,
List<GenericExceptionHandler<Input,Output>> exceptionHandlers)
Constructor to build an instance of BaseRequestHandlerChain.
|
Copyright © 2023. All rights reserved.