org.springframework.core
Interface ErrorCoded
- All Known Implementing Classes:
- PropertyAccessException
- 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 cMessageSource object.
This interface is necessary because both runtime and checked
exceptions are useful, and they cannot share a common,
framework-specific, superclass.
- Author:
- Rod Johnson
- Version: $Id: ErrorCoded.java,v 1.2 2004/02/02 11:33:34 jhoeller Exp $
- See Also: MessageSource
| Method Summary |
String | getErrorCode() Return the error code associated with this failure. |
getErrorCode
public 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,
or null if not error-coded