@graphty/cytoscape-extensions / index / IdTakenError
Class: IdTakenError
Defined in: cytoscape-extensions/src/graph-data.ts:83
Rejected by graphtyGenerate, graphtyDataset and graphtyImport when a node id of the new graph is already in the core; nothing is added. name is "IdTakenError", code is "E_ID_TAKEN" and id is the first clashing id.
Extends
Error
Constructors
Constructor
new IdTakenError(
id):IdTakenError
Defined in: cytoscape-extensions/src/graph-data.ts:93
Creates the error.
Parameters
id
string
the clashing id
Returns
IdTakenError
Overrides
Error.constructor
Properties
code
readonlycode:"E_ID_TAKEN"="E_ID_TAKEN"
Defined in: cytoscape-extensions/src/graph-data.ts:85
Always "E_ID_TAKEN".
id
readonlyid:string
Defined in: cytoscape-extensions/src/graph-data.ts:87
The first node id of the new graph that the core already holds.