ariba.util.core
Class CycleException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ariba.util.core.CycleException
All Implemented Interfaces:
java.io.Serializable

public class CycleException
extends java.lang.RuntimeException

An exception that is thrown when a cycle is created. For example, such cycles can be created in Roles or Groups. While you may catch this exception, you must not force a database commit after it, and must instead rollback or abandon your transaction. If you do not, the code will make arbitrary deletions in an attempt to break the cycle. Even those deletions may not cover all cases and you may corrupt your data.

See Also:
Serialized Form

Constructor Summary
CycleException(java.lang.Object obj1, java.lang.Object obj2)
          Creates a cycle exception between two nodes in a graph, representing the edge.
 
Method Summary
 java.lang.Object[] getCycleContext()
          Return the objects in context for the current cycle exception
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CycleException

public CycleException(java.lang.Object obj1,
                      java.lang.Object obj2)
Creates a cycle exception between two nodes in a graph, representing the edge.

Parameters:
obj1 - one node of the cycle edge
obj2 - the other node of the cycle edge
Method Detail

getCycleContext

public java.lang.Object[] getCycleContext()
Return the objects in context for the current cycle exception



AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.