Package org.quartz
Class ObjectAlreadyExistsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.quartz.SchedulerException
-
- org.quartz.JobPersistenceException
-
- org.quartz.ObjectAlreadyExistsException
-
- All Implemented Interfaces:
java.io.Serializable
public class ObjectAlreadyExistsException extends JobPersistenceException
An exception that is thrown to indicate that an attempt to store a new object (i.e.,JobDetailorTrigger) in aCalendarfailed, because one with the same name and group already exists.Scheduler- Author:
- James House
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ObjectAlreadyExistsException(java.lang.String msg)Create aObjectAlreadyExistsExceptionwith the given message.ObjectAlreadyExistsException(JobDetail offendingJob)Create aObjectAlreadyExistsExceptionand auto-generate a message using the name/group from the givenJobDetail.ObjectAlreadyExistsException(Trigger offendingTrigger)Create aObjectAlreadyExistsExceptionand auto-generate a message using the name/group from the givenTrigger.
-
Method Summary
-
Methods inherited from class org.quartz.SchedulerException
getUnderlyingException, toString
-
-
-
-
Constructor Detail
-
ObjectAlreadyExistsException
public ObjectAlreadyExistsException(java.lang.String msg)
Create a
ObjectAlreadyExistsExceptionwith the given message.
-
ObjectAlreadyExistsException
public ObjectAlreadyExistsException(JobDetail offendingJob)
Create a
ObjectAlreadyExistsExceptionand auto-generate a message using the name/group from the givenJobDetail.The message will read:
"Unable to store Job with name: '__' and group: '__', because one already exists with this identification."
-
ObjectAlreadyExistsException
public ObjectAlreadyExistsException(Trigger offendingTrigger)
Create a
ObjectAlreadyExistsExceptionand auto-generate a message using the name/group from the givenTrigger.The message will read:
"Unable to store Trigger with name: '__' and group: '__', because one already exists with this identification."
-
-