Package org.springframework.batch.core
Class JobExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.springframework.batch.core.JobExecutionException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DuplicateJobException,JobExecutionAlreadyRunningException,JobExecutionNotFailedException,JobExecutionNotRunningException,JobExecutionNotStoppedException,JobInstanceAlreadyCompleteException,JobInstanceAlreadyExistsException,JobInterruptedException,JobParametersInvalidException,JobParametersNotFoundException,JobRestartException,NoSuchJobException,NoSuchJobExecutionException,NoSuchJobInstanceException
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.- Author:
- Dave Syer, Mahmoud Ben Hassine
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct aJobExecutionExceptionwith a generic message.JobExecutionException(String msg, Throwable cause) Construct aJobExecutionExceptionwith a generic message and a cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JobExecutionException
Construct aJobExecutionExceptionwith a generic message.- Parameters:
msg- The message.
-
JobExecutionException
Construct aJobExecutionExceptionwith a generic message and a cause.- Parameters:
msg- The message.cause- The cause of the exception.
-