1. /*
  2. * @(#)ArrayStoreException.java 1.11 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.lang;
  8. /**
  9. * Thrown to indicate that an attempt has been made to store the
  10. * wrong type of object into an array of objects. For example, the
  11. * following code generates an <code>ArrayStoreException</code>:
  12. * <p><blockquote><pre>
  13. * Object x[] = new String[3];
  14. * x[0] = new Integer(0);
  15. * </pre></blockquote>
  16. *
  17. * @author unascribed
  18. * @version 1.11, 12/19/03
  19. * @since JDK1.0
  20. */
  21. public
  22. class ArrayStoreException extends RuntimeException {
  23. /**
  24. * Constructs an <code>ArrayStoreException</code> with no detail message.
  25. */
  26. public ArrayStoreException() {
  27. super();
  28. }
  29. /**
  30. * Constructs an <code>ArrayStoreException</code> with the specified
  31. * detail message.
  32. *
  33. * @param s the detail message.
  34. */
  35. public ArrayStoreException(String s) {
  36. super(s);
  37. }
  38. }