Module org.refcodes.exception
Package org.refcodes.exception
Interface ErrorCodeAccessor.ErrorCodeProperty
-
- All Superinterfaces:
ErrorCodeAccessor
,ErrorCodeAccessor.ErrorCodeMutator
- Enclosing interface:
- ErrorCodeAccessor
public static interface ErrorCodeAccessor.ErrorCodeProperty extends ErrorCodeAccessor, ErrorCodeAccessor.ErrorCodeMutator
Provides an error code property.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.exception.ErrorCodeAccessor
ErrorCodeAccessor.ErrorCodeBuilder<B extends ErrorCodeAccessor.ErrorCodeBuilder<B>>, ErrorCodeAccessor.ErrorCodeMutator, ErrorCodeAccessor.ErrorCodeProperty
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default String
letErrorCode(String aErrorCode)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given error code (setter) as ofErrorCodeAccessor.ErrorCodeMutator.setErrorCode(String)
and returns the very same value (getter).-
Methods inherited from interface org.refcodes.exception.ErrorCodeAccessor
getErrorCode
-
Methods inherited from interface org.refcodes.exception.ErrorCodeAccessor.ErrorCodeMutator
setErrorCode
-
-
-
-
Method Detail
-
letErrorCode
default String letErrorCode(String aErrorCode)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given error code (setter) as ofErrorCodeAccessor.ErrorCodeMutator.setErrorCode(String)
and returns the very same value (getter).- Parameters:
aErrorCode
- The error code to set (viaErrorCodeAccessor.ErrorCodeMutator.setErrorCode(String)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-
-