org.millscript.commons.alert.alerts
Class IllegalAccessAlert

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.alert.alerts.IllegalAccessAlert
All Implemented Interfaces:
java.io.Serializable

public class IllegalAccessAlert
extends Alert

This class implements an Alert for use in situations like where a IllegalAccessException has been thrown.

See Also:
Serialized Form

Constructor Summary
  IllegalAccessAlert()
          Constructs a new illegal access alert with no explanation.
  IllegalAccessAlert(java.lang.String exp)
          Constructs a new illegal access alert with the specified explanation.
protected IllegalAccessAlert(java.lang.String comp, java.lang.String exp)
          Constructs a new alert with the specified complaint and explanation.
 
Method Summary
 IllegalAccessAlert culpritClass(java.lang.Class problemClass)
           
 IllegalAccessAlert culpritClass(java.lang.String className)
           
 IllegalAccessAlert culpritField(java.lang.reflect.Field problemField)
           
 IllegalAccessAlert culpritField(java.lang.String fieldName)
           
 IllegalAccessAlert culpritMethod(java.lang.reflect.Method problemMethod)
           
 IllegalAccessAlert culpritMethod(java.lang.String methodName)
           
 
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

IllegalAccessAlert

public IllegalAccessAlert()
Constructs a new illegal access alert with no explanation.


IllegalAccessAlert

public IllegalAccessAlert(java.lang.String exp)
Constructs a new illegal access alert with the specified explanation.

Parameters:
exp - the explanation for the alert

IllegalAccessAlert

protected IllegalAccessAlert(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
Method Detail

culpritClass

public IllegalAccessAlert culpritClass(java.lang.Class problemClass)

culpritClass

public IllegalAccessAlert culpritClass(java.lang.String className)

culpritField

public IllegalAccessAlert culpritField(java.lang.reflect.Field problemField)

culpritField

public IllegalAccessAlert culpritField(java.lang.String fieldName)

culpritMethod

public IllegalAccessAlert culpritMethod(java.lang.reflect.Method problemMethod)

culpritMethod

public IllegalAccessAlert culpritMethod(java.lang.String methodName)


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