Package org.refcodes.exception
Interface ErrorCodeAccessor
-
- All Known Subinterfaces:
ErrorCodeAccessor.ErrorCodeProperty
,Trap
- All Known Implementing Classes:
AbstractException
,AbstractHiddenException
,AbstractRuntimeException
,BugException
,HiddenException
,IntegrityException
,LockedException
,LockedException.LockedRuntimeException
,MarshalException
,UnmarshalException
,VerifyRuntimeException
,VetoException
,VetoException.VetoRuntimeException
public interface ErrorCodeAccessor
Provides an accessor 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 message (multi-language support) from a language pack instead of just providing the single language message as being stored by the default exceptions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ErrorCodeAccessor.ErrorCodeBuilder<B extends ErrorCodeAccessor.ErrorCodeBuilder<B>>
Provides a builder method for a error code property returning the builder for applying multiple build operations.static interface
ErrorCodeAccessor.ErrorCodeMutator
Provides a mutator for an error code property.static interface
ErrorCodeAccessor.ErrorCodeProperty
Provides an error code property.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getErrorCode()
Provides the according exception code.
-
-
-
Method Detail
-
getErrorCode
java.lang.String getErrorCode()
Provides the according exception code. 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 message (multi-language support) from a language pack instead of just providing the single language message as being stored by the default exceptions.- Returns:
- The exception code in question.
-
-