1. /*
  2. * @(#)ArithmeticException.java 1.19 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 when an exceptional arithmetic condition has occurred. For
  13. * example, an integer "divide by zero" throws an
  14. * instance of this class.
  15. *
  16. * @author unascribed
  17. * @version 1.19, 02/02/00
  18. * @since JDK1.0
  19. */
  20. public
  21. class ArithmeticException extends RuntimeException {
  22. /**
  23. * Constructs an <code>ArithmeticException</code> with no detail
  24. * message.
  25. */
  26. public ArithmeticException() {
  27. super();
  28. }
  29. /**
  30. * Constructs an <code>ArithmeticException</code> with the specified
  31. * detail message.
  32. *
  33. * @param s the detail message.
  34. */
  35. public ArithmeticException(String s) {
  36. super(s);
  37. }
  38. }