Class JobExecutionException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.springframework.batch.core.JobExecutionException
All Implemented Interfaces:
Direct Known Subclasses:
DuplicateJobException, JobExecutionAlreadyRunningException, JobExecutionNotFailedException, JobExecutionNotRunningException, JobInstanceAlreadyCompleteException, JobInstanceAlreadyExistsException, JobInterruptedException, JobParametersNotFoundException, JobRestartException, NoSuchJobException, NoSuchJobExecutionException, NoSuchJobInstanceException

public class JobExecutionException
extends Exception

Root of exception hierarchy for checked exceptions in job and step execution. Clients of the Job should expect to have to catch and deal with these exceptions because they signal a user error, or an inconsistent state between the user's instructions and the data.

Dave Syer
See Also:
Serialized Form

Constructor Summary
JobExecutionException(String msg)
          Construct a JobExecutionException with a generic message.
JobExecutionException(String msg, Throwable cause)
          Construct a JobExecutionException with a generic message and a cause.
Method Summary
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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


public JobExecutionException(String msg)
Construct a JobExecutionException with a generic message.

msg - the message


public JobExecutionException(String msg,
                             Throwable cause)
Construct a JobExecutionException with a generic message and a cause.

msg - the message
cause - the cause of the exception

Copyright © 2009 SpringSource. All Rights Reserved.