spring-framework / org.springframework.beans / PropertyBatchUpdateException

PropertyBatchUpdateException

open class PropertyBatchUpdateException : BeansException

Combined exception, composed of individual PropertyAccessException instances. An object of this class is created at the beginning of the binding process, and errors added to it as necessary.

The binding process continues when it encounters application-level PropertyAccessExceptions, applying those changes that can be applied and storing rejected changes in an object of this class.

Author
Rod Johnson

Author
Juergen Hoeller

Since
18 April 2001

Constructors

<init>

PropertyBatchUpdateException(propertyAccessExceptions: Array<PropertyAccessException>)

Create a new PropertyBatchUpdateException.

Properties

message

open val message: String

Functions

contains

open fun contains(exType: Class<*>): Boolean

getExceptionCount

fun getExceptionCount(): Int

If this returns 0, no errors were encountered during binding.

getPropertyAccessException

open fun getPropertyAccessException(propertyName: String): PropertyAccessException

Return the exception for this field, or null if there isn't any.

getPropertyAccessExceptions

fun getPropertyAccessExceptions(): Array<PropertyAccessException>

Return an array of the propertyAccessExceptions stored in this object.

Will return the empty array (not null) if there were no errors.

printStackTrace

open fun printStackTrace(ps: PrintStream): Unit
open fun printStackTrace(pw: PrintWriter): Unit

toString

open fun toString(): String