equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1995, 2019, 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 |
46 * @see java.lang.Thread#interrupted() |
46 * @see java.lang.Thread#interrupted() |
47 * @since 1.0 |
47 * @since 1.0 |
48 */ |
48 */ |
49 public |
49 public |
50 class InterruptedException extends Exception { |
50 class InterruptedException extends Exception { |
|
51 @java.io.Serial |
51 private static final long serialVersionUID = 6700697376100628473L; |
52 private static final long serialVersionUID = 6700697376100628473L; |
52 |
53 |
53 /** |
54 /** |
54 * Constructs an <code>InterruptedException</code> with no detail message. |
55 * Constructs an {@code InterruptedException} with no detail message. |
55 */ |
56 */ |
56 public InterruptedException() { |
57 public InterruptedException() { |
57 super(); |
58 super(); |
58 } |
59 } |
59 |
60 |
60 /** |
61 /** |
61 * Constructs an <code>InterruptedException</code> with the |
62 * Constructs an {@code InterruptedException} with the |
62 * specified detail message. |
63 * specified detail message. |
63 * |
64 * |
64 * @param s the detail message. |
65 * @param s the detail message. |
65 */ |
66 */ |
66 public InterruptedException(String s) { |
67 public InterruptedException(String s) { |