All checks were successful
/ Build and Release Library (push) Successful in 1m19s
12 lines
293 B
Scala
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
|