com.seventytwomiles.architecturerules.exceptions
Class DependencyConstraintException

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.DependencyConstraintException
All Implemented Interfaces:
Serializable

public class DependencyConstraintException
extends ArchitectureException

Exception to be thrown when any Rule fails, that is to say, the rule is violoated.

Author:
mikenereson
See Also:
ArchitectureException, Serialized Form

Constructor Summary
DependencyConstraintException()
           
DependencyConstraintException(String message)
           
DependencyConstraintException(String ruleId, String packages, Throwable cause)
          Reports which Rule was broken, by its id, and what packages that Rule governs.
DependencyConstraintException(String message, Throwable cause)
           
DependencyConstraintException(Throwable cause)
           
 
Method Summary
 
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
 

Constructor Detail

DependencyConstraintException

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

DependencyConstraintException

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

DependencyConstraintException

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

DependencyConstraintException

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

DependencyConstraintException

public DependencyConstraintException(String ruleId,
                                     String packages,
                                     Throwable cause)

Reports which Rule was broken, by its id, and what packages that Rule governs.

Parameters:
ruleId - String id of the Rule that was violated.
packages - String listing each package constrained by the violated Rule
cause - Throwable any exception that was thrown


Copyright © 2007-2008. All Rights Reserved.