Module org.refcodes.exception
Package org.refcodes.exception
Interface ExceptionAccessor.ExceptionProperty<EXC extends Throwable>
-
- Type Parameters:
EXC
- The actual exception type.
- All Superinterfaces:
ExceptionAccessor<EXC>
,ExceptionAccessor.ExceptionMutator<EXC>
- Enclosing interface:
- ExceptionAccessor<EXC extends Throwable>
public static interface ExceptionAccessor.ExceptionProperty<EXC extends Throwable> extends ExceptionAccessor<EXC>, ExceptionAccessor.ExceptionMutator<EXC>
Provides a anException
property.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.exception.ExceptionAccessor
ExceptionAccessor.ExceptionBuilder<EXC extends Throwable,B extends ExceptionAccessor.ExceptionBuilder<EXC,B>>, ExceptionAccessor.ExceptionMutator<EXC extends Throwable>, ExceptionAccessor.ExceptionProperty<EXC extends Throwable>
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default EXC
letException(EXC aException)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenException
(setter) as ofExceptionAccessor.ExceptionMutator.setException(Throwable)
and returns the very same value (getter).-
Methods inherited from interface org.refcodes.exception.ExceptionAccessor
getException
-
Methods inherited from interface org.refcodes.exception.ExceptionAccessor.ExceptionMutator
setException
-
-
-
-
Method Detail
-
letException
default EXC letException(EXC aException)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenException
(setter) as ofExceptionAccessor.ExceptionMutator.setException(Throwable)
and returns the very same value (getter).- Parameters:
aException
- TheException
to set (viaExceptionAccessor.ExceptionMutator.setException(Throwable)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-
-