org.millscript.commons.alert.alerts
Class ClassCastAlert
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.millscript.commons.alert.Alert
org.millscript.commons.alert.alerts.ClassCastAlert
- All Implemented Interfaces:
- java.io.Serializable
public class ClassCastAlert
- extends Alert
This class implements an Alert for use in situations like where a
ClassCastException has been thrown.
- See Also:
- Serialized Form
|
Constructor Summary |
|
ClassCastAlert()
Constructs a new class cast alert with no explanation. |
|
ClassCastAlert(java.lang.String exp)
Constructs a new class cast alert with the specified explanation. |
protected |
ClassCastAlert(java.lang.String comp,
java.lang.String exp)
Constructs a new alert with the specified complaint and explanation. |
| 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 |
ClassCastAlert
public ClassCastAlert()
- Constructs a new class cast alert with no explanation.
ClassCastAlert
public ClassCastAlert(java.lang.String exp)
- Constructs a new class cast alert with the specified explanation.
- Parameters:
exp - the explanation for the alert
ClassCastAlert
protected ClassCastAlert(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 complaintexp - the explanation for the alert
culpritObject
public ClassCastAlert culpritObject(java.lang.Object object)
culpritCastType
public ClassCastAlert culpritCastType(java.lang.Class c)
Copyright © 2005-2007 Open World Ltd. All Rights Reserved.