org.springframework.validation
Class ObjectError
java.lang.Object
org.springframework.context.support.DefaultMessageSourceResolvable
org.springframework.validation.ObjectError
- All Implemented Interfaces:
- MessageSourceResolvable, java.io.Serializable
- Direct Known Subclasses:
- FieldError
- public class ObjectError
- extends DefaultMessageSourceResolvable
Encapsulates an object error, i.e. a global reason for rejection.
Normally, an ObjectError has a single code for message resolution.
- Since:
- 10.03.2003
- Author:
- Juergen Hoeller
- See Also:
FieldError
,
Serialized Form
Constructor Summary |
protected |
ObjectError(java.lang.String objectName,
java.lang.String[] codes,
java.lang.Object[] args,
java.lang.String defaultMessage)
Create a new ObjectError instance, using multiple codes. |
|
ObjectError(java.lang.String objectName,
java.lang.String code,
java.lang.Object[] args,
java.lang.String defaultMessage)
Create a new ObjectError instance, using a default code. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ObjectError
public ObjectError(java.lang.String objectName,
java.lang.String code,
java.lang.Object[] args,
java.lang.String defaultMessage)
- Create a new ObjectError instance, using a default code.
ObjectError
protected ObjectError(java.lang.String objectName,
java.lang.String[] codes,
java.lang.Object[] args,
java.lang.String defaultMessage)
- Create a new ObjectError instance, using multiple codes.
This is only meant to be used by subclasses like FieldError.
- See Also:
MessageSourceResolvable.getCodes()
getObjectName
public java.lang.String getObjectName()
toString
public java.lang.String toString()
- Overrides:
toString
in class DefaultMessageSourceResolvable
Copyright (C) 2003-2004 The Spring Framework Project.