|
|||||||||
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 com.plumtree.openfoundation.util.XPException com.plumtree.openfoundation.util.XPClassCastException
public class XPClassCastException
Thrown to indicate that the code has attempted to cast an object
to a subclass of which it is not an instance. For example, the
following code generates a ClassCastException
:
Object x = new Integer(0); System.out.println((String)x);
Constructor Summary | |
---|---|
XPClassCastException()
Constructs a XPClassCastException with no detail message. |
|
XPClassCastException(java.lang.String message)
Constructs a XPClassCastException with the specified
detail message. |
|
XPClassCastException(java.lang.String message,
java.lang.Throwable e)
Constructs an wrapper XPClassCastException with the
specified Exception. |
|
XPClassCastException(java.lang.Throwable e)
Constructs an wrapper XPClassCastException with the
specified Exception. |
Method Summary |
---|
Methods inherited from class com.plumtree.openfoundation.util.XPException |
---|
exceptionToString, ExceptionToString, GetInnerException, GetInstance, GetInstance, getMessage, GetMessage, GetStackTrace, printStackTrace, PrintStackTrace, printStackTrace, ToString |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XPClassCastException()
XPClassCastException
with no detail message.
public XPClassCastException(java.lang.String message)
XPClassCastException
with the specified
detail message.
message
- the detail message.public XPClassCastException(java.lang.Throwable e)
XPClassCastException
with the
specified Exception.
e
- the Exception.public XPClassCastException(java.lang.String message, java.lang.Throwable e)
XPClassCastException
with the
specified Exception.
message
- the detail message.e
- the Exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |