Table of Contents

Class ObjectAlreadyExistsException

Namespace
Quartz
Assembly
Quartz.dll

An exception that is thrown to indicate that an attempt to store a new object (i.e. IJobDetail,ITrigger or ICalendar) in a IScheduler failed, because one with the same name and group already exists.

public sealed class ObjectAlreadyExistsException : JobPersistenceException, ISerializable
Inheritance
ObjectAlreadyExistsException
Implements
Inherited Members

Constructors

ObjectAlreadyExistsException(IJobDetail)

Create a ObjectAlreadyExistsException and auto-generate a message using the name/group from the given IJobDetail.

<p>
The message will read: <br />"Unable to store Job with name: '__' and
group: '__', because one already exists with this identification."
</p>
public ObjectAlreadyExistsException(IJobDetail offendingJob)

Parameters

offendingJob IJobDetail

ObjectAlreadyExistsException(ITrigger)

Create a ObjectAlreadyExistsException and auto-generate a message using the name/group from the given ITrigger.

<p>
The message will read: <br />"Unable to store Trigger with name: '__' and
group: '__', because one already exists with this identification."
</p>
public ObjectAlreadyExistsException(ITrigger offendingTrigger)

Parameters

offendingTrigger ITrigger

ObjectAlreadyExistsException(string)

Create a ObjectAlreadyExistsException with the given message.

public ObjectAlreadyExistsException(string message)

Parameters

message string

Remarks

Both JobKey and TriggerKey are null: nothing here says which object clashed.

Properties

JobKey

The job whose identity was already taken, when the exception was raised for one; otherwise null. It saves a caller parsing the key back out of Message.

public JobKey? JobKey { get; }

Property Value

JobKey

TriggerKey

The trigger whose identity was already taken, when the exception was raised for one; otherwise null. It saves a caller parsing the key back out of Message.

public TriggerKey? TriggerKey { get; }

Property Value

TriggerKey