java::lang::ClassCastException Class Reference

Inheritance diagram for java::lang::ClassCastException:

Inheritance graph
java::lang::RuntimeExceptionjava::lang::Exceptionjava::lang::Throwablejava::lang::Object
[legend]
Collaboration diagram for java::lang::ClassCastException:

Collaboration graph
java::lang::RuntimeExceptionjava::lang::Exceptionjava::lang::Throwablejava::lang::Objectjava::lang::Stringjava::lang::Interfacejava::lang::ObjectRefjava::lang::Comparable
[legend]

List of all members.


Detailed Description

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:

<blockquote>

     Object x = new Integer(0);
     System.out.println((String)x);
 
</blockquote>

Author:
Yuh-Jye Chang
Version:
1.17, 02/02/00
Since:
JDK1.0

Public Member Functions

 ClassCastException (const String &message=nilCString)
 Constructs a ClassCastException with the specified detail message.

Constructor & Destructor Documentation

java::lang::ClassCastException::ClassCastException ( const String message = nilCString  ) 

Constructs a ClassCastException with the specified detail message.

Parameters:
s the detail message.


The documentation for this class was generated from the following file:
Generated on Fri May 16 11:56:35 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3