java.lang.Object | ||
↳ | org.springframework.context.support.DefaultMessageSourceResolvable | |
↳ | org.springframework.validation.ObjectError |
Known Direct Subclasses |
Encapsulates an object error, that is, a global reason for rejecting an object.
See the DefaultMessageCodesResolver
javadoc for details on
how a message code list is built for an ObjectError
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new instance of the ObjectError class.
| |||||||||||
Create a new instance of the ObjectError class.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the name of the affected object.
| |||||||||||
Default implementation exposes the attributes of this MessageSourceResolvable.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.context.support.DefaultMessageSourceResolvable
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.context.MessageSourceResolvable
|
Create a new instance of the ObjectError class.
objectName | the name of the affected object |
---|---|
defaultMessage | the default message to be used to resolve this message |
Create a new instance of the ObjectError class.
objectName | the name of the affected object |
---|---|
codes | the codes to be used to resolve this message |
arguments | the array of arguments to be used to resolve this message |
defaultMessage | the default message to be used to resolve this message |
Default implementation exposes the attributes of this MessageSourceResolvable.
To be overridden in more specific subclasses, potentially including the
resolvable content through resolvableToString()
.