newGraphNodeError method

GraphNodeError newGraphNodeError({
  1. required Object? value,
  2. required String reason,
})

Constructs a new instance of GraphNodeError that describes the location in the graph.

Implementation

GraphNodeError newGraphNodeError({
  required Object? value,
  required String reason,
}) {
  return GraphNodeError(
    name: errorPrimaryLabel,
    node: value,
    pathEdges: pathEdges,
    reason: reason,
  );
}