java.lang
Class ArrayStoreException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.ArrayStoreException
- All Implemented Interfaces:
- Serializable
public class ArrayStoreException
- extends RuntimeException
Thrown when trying to store an object of the wrong runtime type in an
array. For example:
Object[] o = new Integer[1];
o[0] = "oops";
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ArrayStoreException
public ArrayStoreException()
- Create an exception without a message.
ArrayStoreException
public ArrayStoreException(String s)
- Create an exception with a message.
- Parameters:
s
- the message