See the DefaultMessageCodesResolver javadoc for details on
how a message code list is built for an ObjectError.
FieldError, DefaultMessageCodesResolver
| Access | Constructor and Description |
|---|---|
| public | ObjectError(String
the name of the affected object objectName, String the default message to be used to resolve this message defaultMessage)Create a new instance of the ObjectError class. |
| public | ObjectError(String
the name of the affected object objectName, String[] the codes to be used to resolve this message codes, Object[] the array of arguments to be used to resolve this message arguments, String the default message to be used to resolve this message defaultMessage)Create a new instance of the ObjectError class. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: whether this error has been caused by a source object of the given typeCheck the source behind this error: possibly an |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides org. |
| public String | |
| public int | hashCode()
Overrides org. |
| public String | toString()
Overrides org. |
| public <T> T | Returns: the source object of the given typeUnwrap the source behind this error: possibly an |
| public void | wrap(Object
the source object source)Preserve the source behind this error: possibly an |
| objectName | back to summary |
|---|---|
| private final String objectName | |
| source | back to summary |
|---|---|
| private transient Object source
| |
| ObjectError | back to summary |
|---|---|
| public ObjectError(String objectName, String defaultMessage) Create a new instance of the ObjectError class. | |
| ObjectError | back to summary |
|---|---|
| public ObjectError(String objectName, String[] codes, Object[] arguments, String defaultMessage) Create a new instance of the ObjectError class. | |
| contains | back to summary |
|---|---|
| public boolean contains(Class<?> sourceType) Check the source behind this error: possibly an The cause of the outermost exception will be introspected as well,
e.g. the underlying conversion exception or exception thrown from a setter
(instead of having to unwrap the
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides org. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getObjectName | back to summary |
|---|---|
| public String getObjectName() Return the name of the affected object. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from org. The default implementation exposes the attributes of this MessageSourceResolvable. To be overridden in more specific subclasses, potentially including the
resolvable content through
| |
| unwrap | back to summary |
|---|---|
| public <T> T unwrap(Class<T> sourceType) Unwrap the source behind this error: possibly an The cause of the outermost exception will be introspected as well,
e.g. the underlying conversion exception or exception thrown from a setter
(instead of having to unwrap the
| |
| wrap | back to summary |
|---|---|
| public void wrap(Object source) Preserve the source behind this error: possibly an Note that any such source object is being stored as transient: that is, it won't be part of a serialized error representation.
| |