public class ObjectAlreadyExistsException extends JobPersistenceException
An exception that is thrown to indicate that an attempt to store a new
object (i.e.
,JobDetail
or Trigger
) in a Calendar
failed, because one with the same name & group already exists.
Scheduler
ERR_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 |
---|
ObjectAlreadyExistsException(JobDetail offendingJob)
Create a
ObjectAlreadyExistsException and auto-generate a
message using the name/group from the given JobDetail . |
ObjectAlreadyExistsException(java.lang.String msg)
Create a
ObjectAlreadyExistsException with the given
message. |
ObjectAlreadyExistsException(Trigger offendingTrigger)
Create a
ObjectAlreadyExistsException and auto-generate a
message using the name/group from the given Trigger . |
getErrorCode, getUnderlyingException, isClientError, isConfigurationError, isJobListenerError, isPersistenceError, isThreadPoolError, isTriggerListenerError, printStackTrace, printStackTrace, printStackTrace, setErrorCode, toString
public ObjectAlreadyExistsException(java.lang.String msg)
Create a ObjectAlreadyExistsException
with the given
message.
public ObjectAlreadyExistsException(JobDetail offendingJob)
Create a ObjectAlreadyExistsException
and auto-generate a
message using the name/group from the given JobDetail
.
The message will read:
"Unable to store Job with name: '__' and
group: '__', because one already exists with this identification."
public ObjectAlreadyExistsException(Trigger offendingTrigger)
Create a ObjectAlreadyExistsException
and auto-generate a
message using the name/group from the given Trigger
.
The message will read:
"Unable to store Trigger with name: '__' and
group: '__', because one already exists with this identification."