open class BindException : Exception, BindingResult
Thrown when binding errors are considered fatal. Implements the BindingResult interface (and its super-interface Errors) to allow for the direct analysis of binding errors.
As of Spring 2.0, this is a special-purpose class. Normally, application code will work with the BindingResult interface, or with a DataBinder that in turn exposes a BindingResult via org.springframework.validation.DataBinder#getBindingResult().
Author
Rod Johnson
Author
Juergen Hoeller
Author
Rob Harrop
See Also
BindingResultDataBinder#getBindingResult()DataBinder#close()
BindException(bindingResult: BindingResult)
Create a new BindException instance for a BindingResult. BindException(target: Any, objectName: String)
Create a new BindException instance for a target bean. |
open val message: String
Returns diagnostic information about the errors held in this object. |
open fun addAllErrors(errors: Errors): Unit |
|
open fun addError(error: ObjectError): Unit |
|
open fun equals(other: Any?): Boolean |
|
open fun findEditor(field: String, valueType: Class<Any>): PropertyEditor |
|
open fun getAllErrors(): MutableList<ObjectError> |
|
fun getBindingResult(): BindingResult
Return the BindingResult that this BindException wraps. Will typically be a BeanPropertyBindingResult. |
|
open fun getErrorCount(): Int |
|
open fun getFieldError(): FieldErroropen fun getFieldError(field: String): FieldError |
|
open fun getFieldErrorCount(): Intopen fun getFieldErrorCount(field: String): Int |
|
open fun getFieldErrors(): MutableList<FieldError>open fun getFieldErrors(field: String): MutableList<FieldError> |
|
open fun getFieldType(field: String): Class<*> |
|
open fun getFieldValue(field: String): Any |
|
open fun getGlobalError(): ObjectError |
|
open fun getGlobalErrorCount(): Int |
|
open fun getGlobalErrors(): MutableList<ObjectError> |
|
open fun getModel(): MutableMap<String, Any> |
|
open fun getNestedPath(): String |
|
open fun getObjectName(): String |
|
open fun getPropertyEditorRegistry(): PropertyEditorRegistry |
|
open fun getRawFieldValue(field: String): Any |
|
open fun getSuppressedFields(): Array<String> |
|
open fun getTarget(): Any |
|
open fun hasErrors(): Boolean |
|
open fun hasFieldErrors(): Booleanopen fun hasFieldErrors(field: String): Boolean |
|
open fun hasGlobalErrors(): Boolean |
|
open fun hashCode(): Int |
|
open fun popNestedPath(): Unit |
|
open fun pushNestedPath(subPath: String): Unit |
|
open fun recordSuppressedField(field: String): Unit |
|
open fun reject(errorCode: String): Unitopen fun reject(errorCode: String, defaultMessage: String): Unitopen fun reject(errorCode: String, errorArgs: Array<Any>, defaultMessage: String): Unit |
|
open fun rejectValue(field: String, errorCode: String): Unitopen fun rejectValue(field: String, errorCode: String, defaultMessage: String): Unitopen fun rejectValue(field: String, errorCode: String, errorArgs: Array<Any>, defaultMessage: String): Unit |
|
open fun resolveMessageCodes(errorCode: String): Array<String>open fun resolveMessageCodes(errorCode: String, field: String): Array<String> |
|
open fun setNestedPath(nestedPath: String): Unit |