org.springframework.batch.core.configuration

## Class DuplicateJobException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - org.springframework.batch.core.JobExecutionException
      - - org.springframework.batch.core.configuration.DuplicateJobException

- All Implemented Interfaces:
    java.io.Serializable

      public class DuplicateJobException
      extends JobExecutionException

  Checked exception that indicates a name clash when registering `Job` instances.
  Author:
    Dave Syer
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DuplicateJobException(java.lang.String msg)` Create an exception with the given message.
    `DuplicateJobException(java.lang.String msg, java.lang.Throwable e)`

  - ### 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

    - #### DuplicateJobException

          public DuplicateJobException(java.lang.String msg)

      Create an exception with the given message.
      Parameters:
        `msg` - error message.

    - #### DuplicateJobException

          public DuplicateJobException(java.lang.String msg,
                                       java.lang.Throwable e)

      Parameters:
        `msg` - error message.
        `e` - instance of `Throwable` that is the cause of the exception.