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