接口 ErrorCoded
- 所有已知实现类:
ConversionNotSupportedException
,MethodArgumentConversionNotSupportedException
,MethodArgumentTypeMismatchException
,MethodInvocationException
,PropertyAccessException
,TypeMismatchException
@Deprecated public interface ErrorCoded
已过时。as of Spring Framework 4.3.6Interface 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.
- 作者:
- Rod Johnson
- 另请参阅:
MessageSource
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 String
getErrorCode()
已过时。Return the error code associated with this failure.
方法详细资料
getErrorCode
String getErrorCode()
已过时。Return the error code associated with this failure. The GUI can render this any way it pleases, allowing for localization etc.- 返回:
- a String error code associated with this failure, or
null
if not error-coded