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.

Version:
$Id: ErrorCoded.java,v 1.3 2004/03/18 02:46:06 trisberg Exp $
Author:
Rod Johnson
See Also:
MessageSource

Method Summary
 java.lang.String getErrorCode()
          Return the error code associated with this failure.
 

Method Detail

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, or null if not error-coded


Copyright (C) 2003-2004 The Spring Framework Project.