Skip to content

@graphty/graphty-element / index / GraphtyErrorTarget

Type Alias: GraphtyErrorTarget ​

GraphtyErrorTarget = { id: string; kind: "layer"; } | { id: string; kind: "run"; } | { id: string; kind: "scope"; }

Defined in: graphty-element/src/errors/GraphtyError.ts:35

The thing a failure belongs to, when it belongs to a thing rather than to the session.

A run's failure lands on the run, a layer's failure lands on the layer, and everything else is the session's. The ids are the element's ordinary opaque string ids.