ccc.api.exceptions
Class CycleDetectedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ccc.api.exceptions.CCException
                  extended by ccc.api.exceptions.InvalidException
                      extended by ccc.api.exceptions.CycleDetectedException
All Implemented Interfaces:
java.io.Serializable

public class CycleDetectedException
extends InvalidException

This exception indicates that a cycle was detected where a resource refers to itself, either directly or indirectly.

Examples would be an alias whose target points to itself or a folder that contains itself.

Author:
Civic Computing Ltd.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class ccc.api.exceptions.InvalidException
RESOLUTION, RESOURCE
 
Fields inherited from class ccc.api.exceptions.CCException
MESSAGE
 
Constructor Summary
CycleDetectedException()
          Constructor.
CycleDetectedException(java.util.UUID resource)
          Constructor.
 
Method Summary
 
Methods inherited from class ccc.api.exceptions.InvalidException
getResource, setResolution
 
Methods inherited from class ccc.api.exceptions.CCException
addParam, getFailure, getMessage, getParam, setId, setParams
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CycleDetectedException

public CycleDetectedException()
Constructor.


CycleDetectedException

public CycleDetectedException(java.util.UUID resource)
Constructor.

Parameters:
resource - The resource for which a cycle was detected.


Copyright © 2010. All Rights Reserved.