org.exist.scheduler
Class JobException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.exist.scheduler.JobException
- All Implemented Interfaces:
- Serializable
public class JobException
- extends Exception
Exception class can be thrown by implementations of
org.exist.scheduler.Job
Also provides a mechanism for cleaning up a job after
failed execution
- Author:
- Adam Retter
- See Also:
- Serialized Form
Method Summary |
void |
cleanupJob()
Should be called after this exception is caught
it cleans up the job, with regards to the scheduler
Jobs may be removed, refired immediately or left
for their next execution |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
JOB_ABORT
public static final int JOB_ABORT
- See Also:
- Constant Field Values
JOB_ABORT_THIS
public static final int JOB_ABORT_THIS
- See Also:
- Constant Field Values
JOB_ABORT_ALL
public static final int JOB_ABORT_ALL
- See Also:
- Constant Field Values
JOB_REFIRE
public static final int JOB_REFIRE
- See Also:
- Constant Field Values
JobException
public JobException(int action,
String message)
cleanupJob
public void cleanupJob()
throws JobExecutionException
- Should be called after this exception is caught
it cleans up the job, with regards to the scheduler
Jobs may be removed, refired immediately or left
for their next execution
- Throws:
JobExecutionException
Copyright (C) Wolfgang Meier. All rights reserved.