public interface ICodedException
AbstractException
and
AbstractRuntimeException
to provide a common interface
for accessing error codes.An error code is a compact string representing the nature of exception in a programmatic locale-independent way. It can be used as a key that maps to a human-readable error message in a resource bundle. For details, see the exception classes mentioned above.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorCode()
Returns the String that was passed as 'message' argument to an exception
constructor.
|
java.lang.String getErrorCode()
getMessage()
], otherwise
this will be traditional error message.