Table of Contents

Class NameAlreadyExistsException

Namespace
CADability
Assembly
CADability.dll

Thrown when the name of an object (e.g. a layer or a colour) is changed and the list that holds the object (e.g. the LayerList), in which names must be unique, already contains an object with that name. The user interface catches this exception when a name is edited and restores the old name.

public class NameAlreadyExistsException : Exception, ISerializable
Inheritance
NameAlreadyExistsException
Implements
Inherited Members

Constructors

NameAlreadyExistsException(object, object, string)

public NameAlreadyExistsException(object ContainingList, object OffendingObject, string NewName)

Parameters

ContainingList object
OffendingObject object
NewName string

NameAlreadyExistsException(object, object, string, string)

public NameAlreadyExistsException(object ContainingList, object OffendingObject, string NewName, string OldName)

Parameters

ContainingList object
OffendingObject object
NewName string
OldName string

Fields

ContainingList

The list that contains the object and that already contains another object with the new name

public object ContainingList

Field Value

object

NewName

The new name that was attempted to be set

public string NewName

Field Value

string

OffendingObject

The object (e.g. a layer) whose renaming caused the conflict

public object OffendingObject

Field Value

object

OldName

The old name, which was valid

public string OldName

Field Value

string