kaos.kpat.policyTemplates
Class TemplateBuildingNotCompleted

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by kaos.kpat.policyTemplates.TemplateBuildingNotCompleted
All Implemented Interfaces:
java.io.Serializable

public class TemplateBuildingNotCompleted
extends java.lang.Exception

A compond exception which is thrown when a Template cannot be completed. A list of reasons for failure can be collected.

See Also:
Serialized Form

Constructor Summary
TemplateBuildingNotCompleted()
           
TemplateBuildingNotCompleted(java.lang.String s)
           
 
Method Summary
 void addReason(java.lang.Object reason)
           
 java.util.List getReasons()
           
 void throwIfNotCompleted()
           
 
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

TemplateBuildingNotCompleted

public TemplateBuildingNotCompleted()

TemplateBuildingNotCompleted

public TemplateBuildingNotCompleted(java.lang.String s)
Method Detail

addReason

public void addReason(java.lang.Object reason)

getReasons

public java.util.List getReasons()

throwIfNotCompleted

public void throwIfNotCompleted()
                         throws TemplateBuildingNotCompleted
Throws:
Itself - if there is a reason to do so.
TemplateBuildingNotCompleted