Package org.quartz

Class 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. JobDetail,Trigger or Calendar) in a Scheduler failed, because one with the same name and group already exists.
    Author:
    James House
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectAlreadyExistsException​(java.lang.String msg)
      Create a ObjectAlreadyExistsException with the given message.
      ObjectAlreadyExistsException​(JobDetail offendingJob)
      Create a ObjectAlreadyExistsException and auto-generate a message using the name/group from the given JobDetail.
      ObjectAlreadyExistsException​(Trigger offendingTrigger)
      Create a ObjectAlreadyExistsException and auto-generate a message using the name/group from the given Trigger.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ObjectAlreadyExistsException

        public ObjectAlreadyExistsException​(java.lang.String msg)

        Create a ObjectAlreadyExistsException with the given message.

      • ObjectAlreadyExistsException

        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."

      • ObjectAlreadyExistsException

        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."