org.springframework.batch.item

## Class WriteFailedException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - org.springframework.batch.item.ItemWriterException
        - - org.springframework.batch.item.WriteFailedException

- All Implemented Interfaces:
    java.io.Serializable

      public class WriteFailedException
      extends ItemWriterException

  Unchecked exception indicating that an error has occurred while trying to clear a buffer on a rollback.
  Author:
    Lucas Ward, Ben Hale
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `WriteFailedException(java.lang.String message)` Create a new `WriteFailedException` based on a message.
    `WriteFailedException(java.lang.String message, java.lang.Throwable cause)` Create a new `WriteFailedException` based on a message and another exception.

  - ### Method Summary

    - ### Methods inherited from class java.lang.Throwable

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

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### WriteFailedException

          public WriteFailedException(java.lang.String message,
                                      java.lang.Throwable cause)

      Create a new `WriteFailedException` based on a message and another exception.
      Parameters:
        `message` - the message for this exception
        `cause` - the other exception

    - #### WriteFailedException

          public WriteFailedException(java.lang.String message)

      Create a new `WriteFailedException` based on a message.
      Parameters:
        `message` - the message for this exception