APIdia Launch Partner
Top Description Fields Constructors
java.lang

public Class ArrayStoreException

extends RuntimeException
Class Inheritance

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] = Integer.valueOf(0);
Since
1.0

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
ArrayStoreException()

Constructs an ArrayStoreException with no detail message.

public
ArrayStoreException(String
the detail message.
s
)

Constructs an ArrayStoreException with the specified detail message.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Annotations
@Serial

Constructor Detail

ArrayStoreExceptionback to summary
public ArrayStoreException()

Constructs an ArrayStoreException with no detail message.

ArrayStoreExceptionback to summary
public ArrayStoreException(String s)

Constructs an ArrayStoreException with the specified detail message.

Parameters
s:String

the detail message.