com.seventytwomiles.architecturerules.exceptions
Class CyclicRedundancyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.seventytwomiles.architecturerules.exceptions.ArchitectureException
                  extended by com.seventytwomiles.architecturerules.exceptions.CyclicRedundancyException
All Implemented Interfaces:
Serializable

public class CyclicRedundancyException
extends ArchitectureException

Thrown to indicate that a cyclic redundancy was found.

Author:
mikenereson
See Also:
ArchitectureException, Serialized Form

Field Summary
protected  Map<String,Set<String>> cycles
          Holds the cycles by package name.
 
Constructor Summary
CyclicRedundancyException()
           
CyclicRedundancyException(String message)
           
CyclicRedundancyException(String packageName, String efferentPackage)
          Constructs a new CyclicRedundancyException with a generated message containing the given packageName and efferentPackage.
CyclicRedundancyException(String message, Throwable cause)
           
CyclicRedundancyException(Throwable cause)
           
 
Method Summary
 Map<String,Set<String>> getCycles()
           
 
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

cycles

protected Map<String,Set<String>> cycles

Holds the cycles by package name. The Map key is the full package and the key is a Set of packages that are involved in the cycle.

Constructor Detail

CyclicRedundancyException

public CyclicRedundancyException()
See Also:
RuntimeException.RuntimeException()

CyclicRedundancyException

public CyclicRedundancyException(String message)
See Also:
RuntimeException.RuntimeException(String)

CyclicRedundancyException

public CyclicRedundancyException(Throwable cause)
See Also:
RuntimeException.RuntimeException(Throwable)

CyclicRedundancyException

public CyclicRedundancyException(String message,
                                 Throwable cause)
See Also:
RuntimeException.RuntimeException(String,Throwable)

CyclicRedundancyException

public CyclicRedundancyException(String packageName,
                                 String efferentPackage)

Constructs a new CyclicRedundancyException with a generated message containing the given packageName and efferentPackage.

Parameters:
packageName - String the name of the package containing the cyclic dependency
efferentPackage - String the name of the package the package is cyclicly involved with.
Method Detail

getCycles

public Map<String,Set<String>> getCycles()


Copyright © 2007-2008. All Rights Reserved.