Module org.refcodes.exception
Package org.refcodes.exception
Interface ExceptionHandlerAccessor.ExceptionHandlerProperty<EXC extends Throwable>
-
- Type Parameters:
EXC
- TheException
being handled by theExceptionHandler
.
- All Superinterfaces:
ExceptionHandlerAccessor<EXC>
,ExceptionHandlerAccessor.ExceptionHandlerMutator<EXC>
- Enclosing interface:
- ExceptionHandlerAccessor<EXC extends Throwable>
public static interface ExceptionHandlerAccessor.ExceptionHandlerProperty<EXC extends Throwable> extends ExceptionHandlerAccessor<EXC>, ExceptionHandlerAccessor.ExceptionHandlerMutator<EXC>
Provides a anExceptionHandler
property.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.exception.ExceptionHandlerAccessor
ExceptionHandlerAccessor.ExceptionHandlerBuilder<EXC extends Throwable,B extends ExceptionHandlerAccessor.ExceptionHandlerBuilder<EXC,B>>, ExceptionHandlerAccessor.ExceptionHandlerMutator<EXC extends Throwable>, ExceptionHandlerAccessor.ExceptionHandlerProperty<EXC extends Throwable>
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ExceptionHandler<EXC>
letExceptionHandler(ExceptionHandler<EXC> aExceptionHandler)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenExceptionHandler
(setter) as ofExceptionHandlerAccessor.ExceptionHandlerMutator.setExceptionHandler(ExceptionHandler)
and returns the very same value (getter).-
Methods inherited from interface org.refcodes.exception.ExceptionHandlerAccessor
getExceptionHandler
-
Methods inherited from interface org.refcodes.exception.ExceptionHandlerAccessor.ExceptionHandlerMutator
setExceptionHandler
-
-
-
-
Method Detail
-
letExceptionHandler
default ExceptionHandler<EXC> letExceptionHandler(ExceptionHandler<EXC> aExceptionHandler)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenExceptionHandler
(setter) as ofExceptionHandlerAccessor.ExceptionHandlerMutator.setExceptionHandler(ExceptionHandler)
and returns the very same value (getter).- Parameters:
aExceptionHandler
- TheExceptionHandler
to set (viaExceptionHandlerAccessor.ExceptionHandlerMutator.setExceptionHandler(ExceptionHandler)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-
-