org.springframework.beans

## 类 PropertyBatchUpdateException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - org.springframework.core.NestedRuntimeException
        - - org.springframework.beans.BeansException
          - - org.springframework.beans.PropertyBatchUpdateException

- 所有已实现的接口:
    Serializable

      public class PropertyBatchUpdateException
      extends 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.

  从以下版本开始:
    18 April 2001
  作者:
    Rod Johnson, Juergen Hoeller
  另请参阅:
    序列化表格

- - ### 构造器概要

    构造器
    构造器和说明
    `PropertyBatchUpdateException(PropertyAccessException[] propertyAccessExceptions)` Create a new PropertyBatchUpdateException.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `boolean` | `contains(Class<?> exType)`
    `int` | `getExceptionCount()` If this returns 0, no errors were encountered during binding.
    `String` | `getMessage()`
    `PropertyAccessException` | `getPropertyAccessException(String propertyName)` Return the exception for this field, or `null` if there isn't any.
    `PropertyAccessException[]` | `getPropertyAccessExceptions()` Return an array of the propertyAccessExceptions stored in this object.
    `void` | `printStackTrace(PrintStream ps)`
    `void` | `printStackTrace(PrintWriter pw)`
    `String` | `toString()`

    - ### 从类继承的方法 org.springframework.core.NestedRuntimeException

      `getMostSpecificCause, getRootCause`

    - ### 从类继承的方法 java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### PropertyBatchUpdateException

          public PropertyBatchUpdateException(PropertyAccessException[] propertyAccessExceptions)

      Create a new PropertyBatchUpdateException.
      参数:
        `propertyAccessExceptions` - the List of PropertyAccessExceptions

  - ### 方法详细资料

    - #### getExceptionCount

          public final int getExceptionCount()

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

    - #### getPropertyAccessExceptions

          public final PropertyAccessException[] getPropertyAccessExceptions()

      Return an array of the propertyAccessExceptions stored in this object.

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

    - #### getPropertyAccessException

          @Nullable
          public PropertyAccessException getPropertyAccessException(String propertyName)

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

    - #### getMessage

          public String getMessage()

      覆盖:
        `getMessage` 在类中 `org.springframework.core.NestedRuntimeException`

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `Throwable`

    - #### printStackTrace

          public void printStackTrace(PrintStream ps)

      覆盖:
        `printStackTrace` 在类中 `Throwable`

    - #### printStackTrace

          public void printStackTrace(PrintWriter pw)

      覆盖:
        `printStackTrace` 在类中 `Throwable`

    - #### contains

          public boolean contains(@Nullable
                                  Class<?> exType)

      覆盖:
        `contains` 在类中 `org.springframework.core.NestedRuntimeException`