Back to index

plt-scheme  4.2.1
Public Member Functions | Static Private Attributes
java.lang.ClassCastException Class Reference

Thrown when an attempt is made to cast an object which is not of the appropriate runtime type. More...

Inheritance diagram for java.lang.ClassCastException:
Inheritance graph
[legend]
Collaboration diagram for java.lang.ClassCastException:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ClassCastException ()
 Create an exception without a message.
 ClassCastException (String s)
 Create an exception with a message.

Static Private Attributes

static final long serialVersionUID = -9223365651070458532L
 Compatible with JDK 1.0+.

Detailed Description

Thrown when an attempt is made to cast an object which is not of the appropriate runtime type.

For example:

 Object o = new Vector();
 String s = (String) o;
 
Author:
Brian Jones
Warren Levy warre.nosp@m.nl@c.nosp@m.ygnus.nosp@m..com updated to 1.4

Definition at line 53 of file ClassCastException.java.


Constructor & Destructor Documentation

Create an exception without a message.

Definition at line 63 of file ClassCastException.java.

  {
  }

Create an exception with a message.

Parameters:
sthe message

Definition at line 72 of file ClassCastException.java.

  {
    super(s);
  }

Member Data Documentation

final long java.lang.ClassCastException.serialVersionUID = -9223365651070458532L [static, private]

Compatible with JDK 1.0+.

Reimplemented from java.lang.RuntimeException.

Definition at line 58 of file ClassCastException.java.


The documentation for this class was generated from the following file: