java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.ArrayStoreException
public class ArrayStoreException
试图将错误类型的对象存储到一个对象数组时抛出的异常。例如,以下代码可生成一个 ArrayStoreException:
Object x[] = new String[3];
x[0] = new Integer(0);
| 构造方法摘要 | |
|---|---|
ArrayStoreException() 构造不带详细消息的 ArrayStoreException。 |
|
ArrayStoreException(String s) 构造具有指定详细消息的 ArrayStoreException。 |
|
| 方法摘要 |
|---|
| 从类 java.lang.Throwable 继承的方法 |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public ArrayStoreException()
ArrayStoreException。
public ArrayStoreException(String s)
ArrayStoreException。
s - 详细消息。