spring-framework / org.springframework.validation / ObjectError / <init>

<init>

ObjectError(objectName: String, defaultMessage: String)

Create a new instance of the ObjectError class.

Parameters

objectName - the name of the affected object

defaultMessage - the default message to be used to resolve this message

ObjectError(objectName: String, @Nullable codes: Array<String>, @Nullable arguments: Array<Any>, @Nullable defaultMessage: String)

Create a new instance of the ObjectError class.

Parameters

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