public class JobExecutionException extends SchedulerException
An exception that can be thrown by a
to indicate to the Quartz Job
that an error
occured while executing, and whether or not the Scheduler
Job
requests
to be re-fired immediately (using the same
,
or whether it wants to be unscheduled.
JobExecutionContext
Note that if the flag for 'refire immediately' is set, the flags for unscheduling the Job are ignored.
Job
,
JobExecutionContext
,
SchedulerException
,
Serialized FormERR_BAD_CONFIGURATION, ERR_CLIENT_ERROR, ERR_COMMUNICATION_FAILURE, ERR_JOB_EXECUTION_THREW_EXCEPTION, ERR_JOB_LISTENER, ERR_JOB_LISTENER_NOT_FOUND, ERR_PERSISTENCE, ERR_PERSISTENCE_CALENDAR_DOES_NOT_EXIST, ERR_PERSISTENCE_CRITICAL_FAILURE, ERR_PERSISTENCE_JOB_DOES_NOT_EXIST, ERR_PERSISTENCE_TRIGGER_DOES_NOT_EXIST, ERR_THREAD_POOL, ERR_THREAD_POOL_CRITICAL_FAILURE, ERR_THREAD_POOL_EXHAUSTED, ERR_TIME_BROKER_FAILURE, ERR_TRIGGER_LISTENER, ERR_TRIGGER_LISTENER_NOT_FOUND, ERR_TRIGGER_THREW_EXCEPTION, ERR_UNSPECIFIED, ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION
Constructor and Description |
---|
JobExecutionException()
Create a JobExcecutionException, with the 're-fire immediately' flag set
to
false . |
JobExecutionException(boolean refireImmediately)
Create a JobExcecutionException with the 're-fire immediately' flag set
to the given value.
|
JobExecutionException(java.lang.String msg)
Create a JobExcecutionException, with the given message.
|
JobExecutionException(java.lang.String msg,
boolean refireImmediately)
Create a JobExcecutionException 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 JobExcecutionException with the given message, and underlying
exception.
|
JobExecutionException(java.lang.String msg,
java.lang.Throwable cause,
boolean refireImmediately)
Create a JobExcecutionException 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 JobExcecutionException, with the given cause.
|
JobExecutionException(java.lang.Throwable cause,
boolean refireImmediately)
Create a JobExcecutionException with the given underlying exception, and
the 're-fire immediately' flag set to the given value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
refireImmediately() |
void |
setRefireImmediately(boolean refire) |
void |
setUnscheduleAllTriggers(boolean unscheduleAllTriggs) |
void |
setUnscheduleFiringTrigger(boolean unscheduleTrigg) |
boolean |
unscheduleAllTriggers() |
boolean |
unscheduleFiringTrigger() |
getErrorCode, getUnderlyingException, isClientError, isConfigurationError, isJobListenerError, isPersistenceError, isThreadPoolError, isTriggerListenerError, printStackTrace, printStackTrace, printStackTrace, setErrorCode, toString
public JobExecutionException()
Create a JobExcecutionException, with the 're-fire immediately' flag set
to false
.
public JobExecutionException(java.lang.Throwable cause)
Create a JobExcecutionException, with the given cause.
public JobExecutionException(java.lang.String msg)
Create a JobExcecutionException, with the given message.
public JobExecutionException(boolean refireImmediately)
Create a JobExcecutionException with the 're-fire immediately' flag set to the given value.
public JobExecutionException(java.lang.Throwable cause, boolean refireImmediately)
Create a JobExcecutionException with the given underlying exception, and the 're-fire immediately' flag set to the given value.
public JobExecutionException(java.lang.String msg, java.lang.Throwable cause)
Create a JobExcecutionException with the given message, and underlying exception.
public JobExecutionException(java.lang.String msg, java.lang.Throwable cause, boolean refireImmediately)
Create a JobExcecutionException with the given message, and underlying exception, and the 're-fire immediately' flag set to the given value.
public JobExecutionException(java.lang.String msg, boolean refireImmediately)
public void setRefireImmediately(boolean refire)
public boolean refireImmediately()
public void setUnscheduleFiringTrigger(boolean unscheduleTrigg)
public boolean unscheduleFiringTrigger()
public void setUnscheduleAllTriggers(boolean unscheduleAllTriggs)
public boolean unscheduleAllTriggers()