Indicates an attempt to insert an ancestor element as one of its own descendants.
78910111213
* Rejection handler for cyclic promises */ public class CycleHandler<T> extends RejectedHandler<T> { public CycleHandler(PromiseHelper helper) { super(new CycleException("Promise cycle"), helper); }
121122123124125126127128129
assertEquals(cause, ex.getCause()); } public void testCycleExceptionConstructor() { XMLException ex = new CycleException(message, cause); assertEquals(message, ex.getMessage()); assertEquals(cause, ex.getCause()); }
125126127128129130131132
throws CycleException { CycleDetector cd = new CycleDetector( graph ); if ( cd.hasCycle() ) { throw new CycleException( "Cycle detected in Graph." ); } }
142143144145146147148149
Vertex end ) throws GraphException { if ( graph.hasConnection( end, start ) ) { throw new CycleException( "Introducing edge will cause a Cycle." ); } }