equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1994, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
28 /** |
28 /** |
29 * Thrown when an exceptional arithmetic condition has occurred. For |
29 * Thrown when an exceptional arithmetic condition has occurred. For |
30 * example, an integer "divide by zero" throws an |
30 * example, an integer "divide by zero" throws an |
31 * instance of this class. |
31 * instance of this class. |
32 * |
32 * |
|
33 * {@code ArithmeticException} objects may be constructed by the |
|
34 * virtual machine as if {@linkplain Throwable#Throwable(String, |
|
35 * Throwable, boolean) suppression were disabled}. |
|
36 * |
33 * @author unascribed |
37 * @author unascribed |
34 * @since JDK1.0 |
38 * @since JDK1.0 |
35 */ |
39 */ |
36 public |
40 public class ArithmeticException extends RuntimeException { |
37 class ArithmeticException extends RuntimeException { |
|
38 private static final long serialVersionUID = 2256477558314496007L; |
41 private static final long serialVersionUID = 2256477558314496007L; |
39 |
42 |
40 /** |
43 /** |
41 * Constructs an <code>ArithmeticException</code> with no detail |
44 * Constructs an {@code ArithmeticException} with no detail |
42 * message. |
45 * message. |
43 */ |
46 */ |
44 public ArithmeticException() { |
47 public ArithmeticException() { |
45 super(); |
48 super(); |
46 } |
49 } |
47 |
50 |
48 /** |
51 /** |
49 * Constructs an <code>ArithmeticException</code> with the specified |
52 * Constructs an {@code ArithmeticException} with the specified |
50 * detail message. |
53 * detail message. |
51 * |
54 * |
52 * @param s the detail message. |
55 * @param s the detail message. |
53 */ |
56 */ |
54 public ArithmeticException(String s) { |
57 public ArithmeticException(String s) { |