gs-graph/src/main/scala/gs/graph/v0/GraphError.scala
Pat Garrity 7b1c110c75
All checks were successful
/ Build and Release Library (push) Successful in 1m19s
Initial implementation.
2025-12-08 22:26:20 -06:00

12 lines
293 B
Scala

package gs.graph.v0
sealed abstract class GraphError(val name: String):
override def toString(): String = name
object GraphError:
/** Produced when validating a directed graph and no cycles are expected.
*/
case object CycleFound extends GraphError("cycle-found")
end GraphError