public class ObjectError extends DefaultMessageSourceResolvable
See the DefaultMessageCodesResolver javadoc for details on
 how a message code list is built for an ObjectError.
FieldError, 
DefaultMessageCodesResolver, 
Serialized Form| Constructor and Description | 
|---|
ObjectError(String objectName,
           String defaultMessage)
Create a new instance of the ObjectError class. 
 | 
ObjectError(String objectName,
           String[] codes,
           Object[] arguments,
           String defaultMessage)
Create a new instance of the ObjectError class. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object other)  | 
String | 
getObjectName()
Return the name of the affected object. 
 | 
int | 
hashCode()  | 
String | 
toString()
Default implementation exposes the attributes of this MessageSourceResolvable. 
 | 
getArguments, getCode, getCodes, getDefaultMessage, resolvableToStringpublic ObjectError(String objectName, String defaultMessage)
objectName - the name of the affected objectdefaultMessage - the default message to be used to resolve this messagepublic ObjectError(String objectName, @Nullable String[] codes, @Nullable Object[] arguments, @Nullable String defaultMessage)
objectName - the name of the affected objectcodes - the codes to be used to resolve this messagearguments - the array of arguments to be used to resolve this messagedefaultMessage - the default message to be used to resolve this messagepublic String getObjectName()
public String toString()
DefaultMessageSourceResolvableresolvableToString().toString in class DefaultMessageSourceResolvableDefaultMessageSourceResolvable.resolvableToString()public boolean equals(@Nullable Object other)
equals in class DefaultMessageSourceResolvablepublic int hashCode()
hashCode in class DefaultMessageSourceResolvable