public class SchedulerException
extends java.lang.Exception
Base class for exceptions thrown by the Quartz
.
Scheduler
SchedulerException
s may contain a reference to another
Exception
, which was the underlying cause of the SchedulerException
.
Modifier and Type | Field and Description |
---|---|
static int |
ERR_BAD_CONFIGURATION |
static int |
ERR_CLIENT_ERROR |
static int |
ERR_COMMUNICATION_FAILURE |
static int |
ERR_JOB_EXECUTION_THREW_EXCEPTION |
static int |
ERR_JOB_LISTENER |
static int |
ERR_JOB_LISTENER_NOT_FOUND |
static int |
ERR_PERSISTENCE |
static int |
ERR_PERSISTENCE_CALENDAR_DOES_NOT_EXIST |
static int |
ERR_PERSISTENCE_CRITICAL_FAILURE |
static int |
ERR_PERSISTENCE_JOB_DOES_NOT_EXIST |
static int |
ERR_PERSISTENCE_TRIGGER_DOES_NOT_EXIST |
static int |
ERR_THREAD_POOL |
static int |
ERR_THREAD_POOL_CRITICAL_FAILURE |
static int |
ERR_THREAD_POOL_EXHAUSTED |
static int |
ERR_TIME_BROKER_FAILURE |
static int |
ERR_TRIGGER_LISTENER |
static int |
ERR_TRIGGER_LISTENER_NOT_FOUND |
static int |
ERR_TRIGGER_THREW_EXCEPTION |
static int |
ERR_UNSPECIFIED |
static int |
ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION |
Constructor and Description |
---|
SchedulerException() |
SchedulerException(java.lang.String msg) |
SchedulerException(java.lang.String msg,
int errorCode) |
SchedulerException(java.lang.String msg,
java.lang.Throwable cause) |
SchedulerException(java.lang.String msg,
java.lang.Throwable cause,
int errorCode) |
SchedulerException(java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Get the error code associated with this exception.
|
java.lang.Throwable |
getUnderlyingException()
Return the exception that is the underlying cause of this exception.
|
boolean |
isClientError()
Determine if the specified error code is in the
'ERR_CLIENT_ERROR'
category of errors. |
boolean |
isConfigurationError()
Determine if the specified error code is in the
'ERR_CLIENT_ERROR'
category of errors. |
boolean |
isJobListenerError()
Determine if the specified error code is in the
'ERR_JOB_LISTENER'
category of errors. |
boolean |
isPersistenceError()
Determine if the specified error code is in the
'ERR_PERSISTENCE'
category of errors. |
boolean |
isThreadPoolError()
Determine if the specified error code is in the
'ERR_THREAD_POOL'
category of errors. |
boolean |
isTriggerListenerError()
Determine if the specified error code is in the
'ERR_TRIGGER_LISTENER'
category of errors. |
void |
printStackTrace()
Print a stack trace to the standard error stream.
|
void |
printStackTrace(java.io.PrintStream out)
Print a stack trace to the specified stream.
|
void |
printStackTrace(java.io.PrintWriter out)
Print a stack trace to the specified writer.
|
void |
setErrorCode(int errorCode)
Get the error code associated with this exception.
|
java.lang.String |
toString() |
public static final int ERR_UNSPECIFIED
public static final int ERR_BAD_CONFIGURATION
public static final int ERR_TIME_BROKER_FAILURE
public static final int ERR_CLIENT_ERROR
public static final int ERR_COMMUNICATION_FAILURE
public static final int ERR_UNSUPPORTED_FUNCTION_IN_THIS_CONFIGURATION
public static final int ERR_PERSISTENCE
public static final int ERR_PERSISTENCE_JOB_DOES_NOT_EXIST
public static final int ERR_PERSISTENCE_CALENDAR_DOES_NOT_EXIST
public static final int ERR_PERSISTENCE_TRIGGER_DOES_NOT_EXIST
public static final int ERR_PERSISTENCE_CRITICAL_FAILURE
public static final int ERR_THREAD_POOL
public static final int ERR_THREAD_POOL_EXHAUSTED
public static final int ERR_THREAD_POOL_CRITICAL_FAILURE
public static final int ERR_JOB_LISTENER
public static final int ERR_JOB_LISTENER_NOT_FOUND
public static final int ERR_TRIGGER_LISTENER
public static final int ERR_TRIGGER_LISTENER_NOT_FOUND
public static final int ERR_JOB_EXECUTION_THREW_EXCEPTION
public static final int ERR_TRIGGER_THREW_EXCEPTION
public SchedulerException()
public SchedulerException(java.lang.String msg)
public SchedulerException(java.lang.String msg, int errorCode)
public SchedulerException(java.lang.Throwable cause)
public SchedulerException(java.lang.String msg, java.lang.Throwable cause)
public SchedulerException(java.lang.String msg, java.lang.Throwable cause, int errorCode)
public java.lang.Throwable getUnderlyingException()
Return the exception that is the underlying cause of this exception.
This may be used to find more detail about the cause of the error.
null
if there is not
one.public int getErrorCode()
Get the error code associated with this exception.
This may be used to find more detail about the cause of the error.
public void setErrorCode(int errorCode)
Get the error code associated with this exception.
This may be used to provide more detail about the cause of the error.
errorCode
- one of the ERR_XXX constants defined in this class.public boolean isPersistenceError()
Determine if the specified error code is in the 'ERR_PERSISTENCE'
category of errors.
public boolean isThreadPoolError()
Determine if the specified error code is in the 'ERR_THREAD_POOL'
category of errors.
public boolean isJobListenerError()
Determine if the specified error code is in the 'ERR_JOB_LISTENER'
category of errors.
public boolean isTriggerListenerError()
Determine if the specified error code is in the 'ERR_TRIGGER_LISTENER'
category of errors.
public boolean isClientError()
Determine if the specified error code is in the 'ERR_CLIENT_ERROR'
category of errors.
public boolean isConfigurationError()
Determine if the specified error code is in the 'ERR_CLIENT_ERROR'
category of errors.
public java.lang.String toString()
toString
in class java.lang.Throwable
public void printStackTrace()
Print a stack trace to the standard error stream.
This overridden version will print the nested stack trace if available, otherwise it prints only this exception's stack.
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream out)
Print a stack trace to the specified stream.
This overridden version will print the nested stack trace if available, otherwise it prints only this exception's stack.
printStackTrace
in class java.lang.Throwable
out
- the stream to which the stack traces will be printed.public void printStackTrace(java.io.PrintWriter out)
Print a stack trace to the specified writer.
This overridden version will print the nested stack trace if available, otherwise it prints this exception's stack.
printStackTrace
in class java.lang.Throwable
out
- the writer to which the stack traces will be printed.