Module org.refcodes.exception
Package org.refcodes.exception
Interface ErrorCodeAccessor.ErrorCodeMutator
- All Known Subinterfaces:
ErrorCodeAccessor.ErrorCodeProperty
- Enclosing interface:
- ErrorCodeAccessor
public static interface ErrorCodeAccessor.ErrorCodeMutator
Provides a mutator for an error code property. An exception code can be
provided when creating an exception and it can be used by the business
logic to retrieve a language depended exception aMessage (multi-language
support) from a language pack instead of just providing the single
language aMessage as being stored by the default exceptions.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setErrorCode
(String aErrorCode) Sets the according exception code.
-
Method Details
-
setErrorCode
Sets the according exception code. SeeErrorCodeAccessor.getErrorCode()
.- Parameters:
aErrorCode
- The exception code in question.
-