ariba.util.core
Class CycleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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 |
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 edgeobj2
- the other node of the cycle edge
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.