1. /*
  2. * @(#)NegativeArraySizeException.java 1.18 03/01/23
  3. *
  4. * Copyright 2003 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.18, 01/23/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. }