org.apache.commons.betwixt.io
Class CyclicReferenceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.apache.commons.betwixt.io.CyclicReferenceException
All Implemented Interfaces:
Serializable

public class CyclicReferenceException
extends RuntimeException

Thrown when bean evaluation finds a cycle reference.

There are two possible behaviours that Betwixt adopts when a cycle in the object graph is encountered.

If ID attributes are being generated, then the recursion will stop and the IDREF attribute will be written. In this case, no exception will be thrown.

If ID are not being generated, then this exception will be thrown.

Version:
$Revision: 1.3 $
Author:
Robert Burrell Donkin
See Also:
Serialized Form

Field Summary
private static String DEFAULT_MESSAGE
          Message used with empty constructor
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
CyclicReferenceException()
          Construct exception with default message.
CyclicReferenceException(String message)
          Construct exception with message
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_MESSAGE

private static final String DEFAULT_MESSAGE
Message used with empty constructor

See Also:
Constant Field Values
Constructor Detail

CyclicReferenceException

public CyclicReferenceException()
Construct exception with default message.


CyclicReferenceException

public CyclicReferenceException(String message)
Construct exception with message

Parameters:
message - the detailed message string