rafa.dep
Class CircularDependencyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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
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 |
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).
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.