com.plumtree.openfoundation.util
Class XPClassCastException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.plumtree.openfoundation.util.XPException
                  extended by com.plumtree.openfoundation.util.XPClassCastException
All Implemented Interfaces:
java.io.Serializable

public class XPClassCastException
extends XPException

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);
 

See Also:
Serialized Form

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

XPClassCastException

public XPClassCastException()
Constructs a XPClassCastException with no detail message.


XPClassCastException

public XPClassCastException(java.lang.String message)
Constructs a XPClassCastException with the specified detail message.

Parameters:
message - the detail message.

XPClassCastException

public XPClassCastException(java.lang.Throwable e)
Constructs an wrapper XPClassCastException with the specified Exception.

Parameters:
e - the Exception.

XPClassCastException

public XPClassCastException(java.lang.String message,
                            java.lang.Throwable e)
Constructs an wrapper XPClassCastException with the specified Exception.

Parameters:
message - the detail message.
e - the Exception.


Copyright © 2002, 2003, 2004 Plumtree Software Inc. All Rights Reserved.