Input
- Skill input type.Output
- Skill output type.Self
- of type Builder.public static class BaseExceptionMapper.Builder<Input,Output,Self extends BaseExceptionMapper.Builder<Input,Output,Self>> extends Object
Modifier and Type | Field and Description |
---|---|
protected List<GenericExceptionHandler<Input,Output>> |
exceptionHandlers
List of exception handlers.
|
Modifier | Constructor and Description |
---|---|
protected |
Builder()
Constructor for Builder class.
|
Modifier and Type | Method and Description |
---|---|
Self |
addExceptionHandler(GenericExceptionHandler<Input,Output> handler)
Adds an exception handler to the end of the handler chain.
|
GenericExceptionMapper<Input,Output> |
build()
Builder method to build an instance of BaseExceptionMapper.
|
Self |
withExceptionHandlers(List<GenericExceptionHandler<Input,Output>> exceptionHandlers)
List of exception handlers to use in the handler chain.
|
protected List<GenericExceptionHandler<Input,Output>> exceptionHandlers
public Self withExceptionHandlers(List<GenericExceptionHandler<Input,Output>> exceptionHandlers)
exceptionHandlers
- list of exception handlersBaseExceptionMapper.Builder
.public Self addExceptionHandler(GenericExceptionHandler<Input,Output> handler)
handler
- handler to add.BaseExceptionMapper.Builder
.public GenericExceptionMapper<Input,Output> build()
BaseExceptionMapper
.Copyright © 2023. All rights reserved.