Class JobExecutionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.quartz.SchedulerException
-
- org.quartz.JobExecutionException
-
- All Implemented Interfaces:
java.io.Serializable
public class JobExecutionException extends SchedulerException
An exception that can be thrown by ato indicate to the QuartzJobthat an error occurred while executing, and whether or not theSchedulerJobrequests to be re-fired immediately (using the same, or whether it wants to be unscheduled.JobExecutionContextNote that if the flag for 'refire immediately' is set, the flags for unscheduling the Job are ignored.
- Author:
- James House
- See Also:
Job,JobExecutionContext,SchedulerException, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JobExecutionException()Create a JobExecutionException, with the 're-fire immediately' flag set tofalse.JobExecutionException(boolean refireImmediately)Create a JobExecutionException with the 're-fire immediately' flag set to the given value.JobExecutionException(java.lang.String msg)Create a JobExecutionException, with the given message.JobExecutionException(java.lang.String msg, boolean refireImmediately)Create a JobExecutionException with the given message and the 're-fire immediately' flag set to the given value.JobExecutionException(java.lang.String msg, java.lang.Throwable cause)Create a JobExecutionException with the given message, and underlying exception.JobExecutionException(java.lang.String msg, java.lang.Throwable cause, boolean refireImmediately)Create a JobExecutionException with the given message, and underlying exception, and the 're-fire immediately' flag set to the given value.JobExecutionException(java.lang.Throwable cause)Create a JobExecutionException, with the given cause.JobExecutionException(java.lang.Throwable cause, boolean refireImmediately)Create a JobExecutionException with the given underlying exception, and the 're-fire immediately' flag set to the given value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanrefireImmediately()voidsetRefireImmediately(boolean refire)voidsetUnscheduleAllTriggers(boolean unscheduleAllTriggs)voidsetUnscheduleFiringTrigger(boolean unscheduleTrigg)booleanunscheduleAllTriggers()booleanunscheduleFiringTrigger()-
Methods inherited from class org.quartz.SchedulerException
getUnderlyingException, toString
-
-
-
-
Constructor Detail
-
JobExecutionException
public JobExecutionException()
Create a JobExecutionException, with the 're-fire immediately' flag set to
false.
-
JobExecutionException
public JobExecutionException(java.lang.Throwable cause)
Create a JobExecutionException, with the given cause.
-
JobExecutionException
public JobExecutionException(java.lang.String msg)
Create a JobExecutionException, with the given message.
-
JobExecutionException
public JobExecutionException(boolean refireImmediately)
Create a JobExecutionException with the 're-fire immediately' flag set to the given value.
-
JobExecutionException
public JobExecutionException(java.lang.Throwable cause, boolean refireImmediately)Create a JobExecutionException with the given underlying exception, and the 're-fire immediately' flag set to the given value.
-
JobExecutionException
public JobExecutionException(java.lang.String msg, java.lang.Throwable cause)Create a JobExecutionException with the given message, and underlying exception.
-
JobExecutionException
public JobExecutionException(java.lang.String msg, java.lang.Throwable cause, boolean refireImmediately)Create a JobExecutionException with the given message, and underlying exception, and the 're-fire immediately' flag set to the given value.
-
JobExecutionException
public JobExecutionException(java.lang.String msg, boolean refireImmediately)Create a JobExecutionException with the given message and the 're-fire immediately' flag set to the given value.
-
-
Method Detail
-
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()
-
-