Package ca.cgjennings.algo
Class GraphCycleException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- ca.cgjennings.algo.GraphCycleException
-
- All Implemented Interfaces:
java.io.Serializable
public class GraphCycleException extends java.lang.IllegalArgumentException
An exception thrown when an algorithm that operates on a graph fails because the graph contains a cycle.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GraphCycleException(java.lang.String message, java.util.Collection<?> culprits)
Creates a new exception for a detected cycle in a graph.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<?>
getCycleMembers()
Returns a collection of the objects involved in the cycle, as passed to the constructor.
-