Defined in: packages/graph/src/errors.ts:65
Thrown when a caller passes a vertex outside the graph, an edge or weight the graph’s flags forbid, an algorithm a graph of the wrong direction, a grid with bad dimensions, or an object the package did not produce where only its own graph will do.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new GraphInvalidInputError(
code,message):GraphInvalidInputError
Defined in: packages/errors/src/index.ts:40
Parameters
Section titled “Parameters”"MAX_CAPACITY_EXCEEDED" | "MODIFIED_DURING_ITERATION" | "SERIALIZATION_LIMIT_EXCEEDED" | "INVALID_WEIGHT" | "INVALID_VERTEX_COUNT" | "INVALID_VERTEX" | "INVALID_EDGE" | "MISSING_WEIGHT" | "UNEXPECTED_WEIGHT" | "INVALID_FLAG" | "SELF_LOOP" | "PARALLEL_EDGE" | "PARALLEL_EDGES_UNSUPPORTED" | "NEGATIVE_WEIGHT" | "DIRECTED_GRAPH_REQUIRED" | "UNDIRECTED_GRAPH_REQUIRED" | "INVALID_GRID" | "FOREIGN_GRAPH"
message
Section titled “message”string
Returns
Section titled “Returns”GraphInvalidInputError
Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”
readonly_tag:"InvalidInputError"
Defined in: packages/errors/src/index.ts:38
Inherited from
Section titled “Inherited from”
readonlycode:"MAX_CAPACITY_EXCEEDED"|"MODIFIED_DURING_ITERATION"|"SERIALIZATION_LIMIT_EXCEEDED"|"INVALID_WEIGHT"|"INVALID_VERTEX_COUNT"|"INVALID_VERTEX"|"INVALID_EDGE"|"MISSING_WEIGHT"|"UNEXPECTED_WEIGHT"|"INVALID_FLAG"|"SELF_LOOP"|"PARALLEL_EDGE"|"PARALLEL_EDGES_UNSUPPORTED"|"NEGATIVE_WEIGHT"|"DIRECTED_GRAPH_REQUIRED"|"UNDIRECTED_GRAPH_REQUIRED"|"INVALID_GRID"|"FOREIGN_GRAPH"
Defined in: packages/errors/src/index.ts:41
Inherited from
Section titled “Inherited from”moduleName
Section titled “moduleName”
readonlymoduleName:"knotkit/graph"
Defined in: packages/graph/src/errors.ts:66