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