Package org.quartz.exceptions
Class JobExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.quartz.exceptions.SchedulerException
org.quartz.exceptions.JobExecutionException
- All Implemented Interfaces:
Serializable
An exception that can be thrown by a
Job
to indicate to the
Quartz Scheduler
that an error occurred while executing, and whether or not
the Job
requests to be re-fired immediately (using the same
JobExecutionContext
, or whether it wants to be unscheduled.
Note that if the flag for 'refire immediately' is set, the flags for unscheduling the Job are ignored.
- Author:
- James House
- See Also:
-
Constructor Summary
ConstructorDescriptionCreate a JobExcecutionException, with the 're-fire immediately' flag set tofalse
.JobExecutionException
(Throwable cause, boolean refireImmediately) Create a JobExcecutionException with the given underlying exception, and the 're-fire immediately' flag set to the given value. -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setRefireImmediately
(boolean refire) void
setUnscheduleAllTriggers
(boolean unscheduleAllTriggs) void
setUnscheduleFiringTrigger
(boolean unscheduleTrigg) boolean
boolean
Methods inherited from class org.quartz.exceptions.SchedulerException
getUnderlyingException, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
JobExecutionException
public JobExecutionException()Create a JobExcecutionException, with the 're-fire immediately' flag set tofalse
. -
JobExecutionException
Create a JobExcecutionException with the given underlying exception, and the 're-fire immediately' flag set to the given value.
-
-
Method Details
-
setRefireImmediately
public void setRefireImmediately(boolean refire) -
refireImmediately
public boolean refireImmediately() -
setUnscheduleFiringTrigger
public void setUnscheduleFiringTrigger(boolean unscheduleTrigg) -
unscheduleFiringTrigger
public boolean unscheduleFiringTrigger() -
setUnscheduleAllTriggers
public void setUnscheduleAllTriggers(boolean unscheduleAllTriggs) -
unscheduleAllTriggers
public boolean unscheduleAllTriggers()
-