com.vladium.util.exception
Interface ICodedException

All Known Implementing Classes:
AbstractException, AbstractRuntimeException

public interface ICodedException

TODO: javadoc This interface is implemented by 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.

Author:
Vlad Roubtsov, (C) 2002

Method Summary
 java.lang.String getErrorCode()
          Returns the String that was passed as 'message' argument to an exception constructor.
 

Method Detail

getErrorCode

public java.lang.String getErrorCode()
Returns the String that was passed as 'message' argument to an exception constructor. For a coded exception this will be the compact error code [and different from the result of getMessage()], otherwise this will be traditional error message.

Returns:
message code string [can be null]