org.millscript.commons.util.alerts
Class BagAlert

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.millscript.commons.alert.Alert
                  extended by org.millscript.commons.util.alerts.MapAlert
                      extended by org.millscript.commons.util.alerts.BagAlert
All Implemented Interfaces:
java.io.Serializable

public abstract class BagAlert
extends MapAlert

This class provides the basis for a hierarchy of Bag specific alerts, so you can easily catch alerts thrown while using Bags. As a Bag is just a Map, any code which already deals with Maps will work without modification.

See Also:
Serialized Form

Constructor Summary
protected BagAlert(java.lang.String comp, java.lang.String exp)
          Constructs a new alert with the specified complaint and explanation.
 
Method Summary
 
Methods inherited from class org.millscript.commons.alert.Alert
culprit, culprit, culprit, culprit, culprit, culprit, culprit, culprit, decorate, decorate, escape, getComplaint, getCulprits, getMessage, getParentAlert, getParentThrowable, getPhase, getReason, isMishap, mishap, origin, remishap, report, setParentAlert, setParentThrowable, setPhase, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BagAlert

protected BagAlert(java.lang.String comp,
                   java.lang.String exp)
Constructs a new alert with the specified complaint and explanation. This constructor is for private use, to allow us to provide an exception hierarchy.

Parameters:
comp - the alerts complaint
exp - the explanation for the alert


Copyright © 2005-2007 Open World Ltd. All Rights Reserved.