1. /*
  2. * @(#)NegativeArraySizeException.java 1.16 00/02/02
  3. *
  4. * Copyright 1994-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 if an application tries to create an array with negative size.
  13. *
  14. * @author unascribed
  15. * @version 1.16, 02/02/00
  16. * @since JDK1.0
  17. */
  18. public
  19. class NegativeArraySizeException extends RuntimeException {
  20. /**
  21. * Constructs a <code>NegativeArraySizeException</code> with no
  22. * detail message.
  23. */
  24. public NegativeArraySizeException() {
  25. super();
  26. }
  27. /**
  28. * Constructs a <code>NegativeArraySizeException</code> with the
  29. * specified detail message.
  30. *
  31. * @param s the detail message.
  32. */
  33. public NegativeArraySizeException(String s) {
  34. super(s);
  35. }
  36. }