rafa.dep
Class CircularDependencyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by rafa.dep.CircularDependencyException
All Implemented Interfaces:
java.io.Serializable

public class CircularDependencyException
extends java.lang.RuntimeException

Exception thrown when trying to create a circular dependency which will lead to a deadlock.

Author:
rafa
See Also:
Serialized Form

Constructor Summary
CircularDependencyException(Dependent dependent, java.lang.Object dependency)
          Constructor.
 
Method Summary
 java.lang.Object getDependency()
           
 Dependent getDependent()
           
 java.lang.String getMessage()
           
 
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

CircularDependencyException

public CircularDependencyException(Dependent dependent,
                                   java.lang.Object dependency)
Constructor.

Parameters:
dependent - The object to which a dependency was being added.
dependency - The intended dependency to be introduced (unsuccessfuly).
Method Detail

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getDependency

public java.lang.Object getDependency()
Returns:

getDependent

public Dependent getDependent()
Returns:


Copyright © 2008-2009. All Rights Reserved.