站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

ErrorCoded (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

org.springframework.core
Interface ErrorCoded

All Known Implementing Classes:
MethodInvocationException, PropertyAccessException, TypeMismatchException

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".

An error code can be resolved by a MessageSource, for example.

Author:
Rod Johnson
See Also:
MessageSource

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

Method Detail

getErrorCode

String getErrorCode()
Return the error code associated with this failure. The GUI can render this any way it pleases, allowing for localization etc.

Returns:
a String error code associated with this failure, or null if not error-coded

The Spring Framework

Copyright © 2002-2007 The Spring Framework.