Class java.lang.ArrayStoreException
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.lang.ArrayStoreException

Object
   |
   +----Throwable
           |
           +----Exception
                   |
                   +----RuntimeException
                           |
                           +----java.lang.ArrayStoreException

public class ArrayStoreException
extends RuntimeException
Thrown to indicate that an attempt has been made to store the wrong type of object into an array of objects. For example, the following code generates an ArrayStoreException:

     Object x[] = new String[3];
     x[0] = new Integer(0);
 

Version:
1.4, 07/01/98
Author:
unascribed
Since:
JDK1.0

Constructor Index

 o java.lang.ArrayStoreException()
Constructs an ArrayStoreException with no detail message.
 o java.lang.ArrayStoreException(String)
Constructs an ArrayStoreException with the specified detail message.

Constructors

 o ArrayStoreException
public ArrayStoreException()
Constructs an ArrayStoreException with no detail message.

Since:
JDK1.0
 o ArrayStoreException
public ArrayStoreException(String s)
Constructs an ArrayStoreException with the specified detail message.

Parameters:
s - the detail message.
Since:
JDK1.0

All Packages  Class Hierarchy  This Package  Previous  Next  Index