|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException java.lang.ClassCastException net.dpml.lang.TypeCastException
public class TypeCastException
Exception raised when class cannot be cast to a requested type.
Constructor Summary | |
---|---|
TypeCastException(String message,
Class base,
Class type)
Construct a new TypeCastException instance. |
Method Summary | |
---|---|
Class |
getBase()
Get the base class. |
String |
getReport()
Get the reported type cast error. |
Class |
getType()
Get the type class. |
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 |
---|
public TypeCastException(String message, Class base, Class type)
TypeCastException
instance.
message
- the messagebase
- the base class against which a failed cast was attemptedtype
- the class used as the cast criteriaMethod Detail |
---|
public Class getBase()
public Class getType()
public String getReport()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |