java.lang
Class ArrayStoreException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.ArrayStoreException

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";
 


Constructor Summary
ArrayStoreException()
          Create an exception without a message.
ArrayStoreException(String s)
          Create an exception with a message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, initCause, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayStoreException

public ArrayStoreException()
Create an exception without a message.


ArrayStoreException

public ArrayStoreException(String s)
Create an exception with a message.

Parameters:
s - the message