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