org.springframework.batch.item

## Class ItemWriterException

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

- All Implemented Interfaces:
    java.io.Serializable
  Direct Known Subclasses:
    AsynchronousFailureException, WriteFailedException, WriterNotOpenException

      public abstract class ItemWriterException
      extends java.lang.RuntimeException

  A base exception class that all exceptions thrown from an `ItemWriter` extend.
  Author:
    Ben Hale
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ItemWriterException(java.lang.String message)` Create a new `ItemWriterException` based on a message.
    `ItemWriterException(java.lang.String message, java.lang.Throwable cause)` Create a new `ItemWriterException` 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

    - #### ItemWriterException

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

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

    - #### ItemWriterException

          public ItemWriterException(java.lang.String message)

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