com.seventytwomiles.architecturerules.exceptions
Class IllegalArchitectureRuleException

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

public class IllegalArchitectureRuleException
extends java.lang.RuntimeException

Exception to be thrown when a Rule is illegal constructed. That is, an illegal violation is created. One example of an illegal violation is when a violation is added to a rule that matches one of the packages that the rule constrins.

 <rule id="dao">
   <packages>
     <package>com.seventytwomiles.pagerank.core.dao</package>
   </packages>
   <violations>
     <violation>com.seventytwomiles.pagerank.core.dao</violation>
   </violations>>
 </rule>
 

Author:
mikenereson
See Also:
RuntimeException, Serialized Form

Constructor Summary
IllegalArchitectureRuleException()
           
IllegalArchitectureRuleException(java.lang.String message)
           
IllegalArchitectureRuleException(java.lang.String ruleId, java.lang.String rulePackages)
          Instantiates a new IllegalArchitectureRuleException with the given ruleId and rulePackages.
IllegalArchitectureRuleException(java.lang.String ruleId, java.lang.String rulePackages, java.lang.Throwable cause)
          Instantiates a new IllegalArchitectureRuleException with the given ruleId and rulePackages, and passes on the cause.
IllegalArchitectureRuleException(java.lang.String message, java.lang.Throwable cause)
           
IllegalArchitectureRuleException(java.lang.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

IllegalArchitectureRuleException

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

IllegalArchitectureRuleException

public IllegalArchitectureRuleException(java.lang.String message)
See Also:
RuntimeException.RuntimeException(String)

IllegalArchitectureRuleException

public IllegalArchitectureRuleException(java.lang.Throwable cause)
See Also:
RuntimeException.RuntimeException(Throwable)

IllegalArchitectureRuleException

public IllegalArchitectureRuleException(java.lang.String message,
                                        java.lang.Throwable cause)
See Also:
RuntimeException.RuntimeException(String,Throwable)

IllegalArchitectureRuleException

public IllegalArchitectureRuleException(java.lang.String ruleId,
                                        java.lang.String rulePackages)

Instantiates a new IllegalArchitectureRuleException with the given ruleId and rulePackages.

Parameters:
ruleId - String id of the Rule
rulePackages - String some description of the package rules, such as a delimited list

IllegalArchitectureRuleException

public IllegalArchitectureRuleException(java.lang.String ruleId,
                                        java.lang.String rulePackages,
                                        java.lang.Throwable cause)

Instantiates a new IllegalArchitectureRuleException with the given ruleId and rulePackages, and passes on the cause.

Parameters:
ruleId - String id of the Rule
rulePackages - String some description of the package rules, such as a delimited list
cause - Throwable root cause


Copyright © 2008. All Rights Reserved.