com.interface21.core
Interface ErrorCoded
- All Known Subinterfaces:
- ParameterizableErrorCoded
- All Known Implementing Classes:
- ErrorCodedPropertyVetoException, InvalidPropertyValuesException.MissingFieldException
- public interface ErrorCoded
Interface that can be implemented by exceptions etc. that
are error coded. The error code is a String, rather than a number,
so it can be given user-readable values, such as "object.failureDescription".
These codes will be resolved by a com.interface21.context.MessageSource
object.
This interface is necessary because both runtime and checked
exceptions are useful, and they cannot share a common,
framework-specific, superclass.
- Version:
- $Id: ErrorCoded.java,v 1.1.1.1 2003/02/11 08:10:18 johnsonr Exp $
- Author:
- Rod Johnson
|
Field Summary |
static java.lang.String |
UNCODED
Constant to indicate that this failure isn't coded |
|
Method Summary |
java.lang.String |
getErrorCode()
Return the error code associated with this failure.
|
UNCODED
public static final java.lang.String UNCODED
- Constant to indicate that this failure isn't coded
getErrorCode
public java.lang.String getErrorCode()
- Return the error code associated with this failure.
The GUI can render this anyway it pleases, allowing for Int8ln etc.
- Returns:
- a String error code associated with this failure
Rod Johnson and Spring contributors 2001-2003.