Package java.lang Previous
Previous
Java API
Java API
Index
Index
Next
Next

Class ArrayStoreException

Constructors

public  class  java.lang.ArrayStoreException
    extends  java.lang.RuntimeException  
{
        // Constructors
    public ArrayStoreException();	
    public ArrayStoreException(String  s);	
}

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 Array-Store-Exception:

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


Constructors


ArrayStoreException

public ArrayStoreException() 

Constructs a ArrayStoreException with no detail message.


ArrayStoreException

public ArrayStoreException(String  s) 

Constructs a ArrayStoreException with the specified detail message.

ParameterDescription
s the detail message



© 1996 Sun Microsystems, Inc. All rights reserved.