jaroslav@68
|
1 |
/*
|
jaroslav@68
|
2 |
* Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
|
jaroslav@68
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
jaroslav@68
|
4 |
*
|
jaroslav@68
|
5 |
* This code is free software; you can redistribute it and/or modify it
|
jaroslav@68
|
6 |
* under the terms of the GNU General Public License version 2 only, as
|
jaroslav@68
|
7 |
* published by the Free Software Foundation. Oracle designates this
|
jaroslav@68
|
8 |
* particular file as subject to the "Classpath" exception as provided
|
jaroslav@68
|
9 |
* by Oracle in the LICENSE file that accompanied this code.
|
jaroslav@68
|
10 |
*
|
jaroslav@68
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT
|
jaroslav@68
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
jaroslav@68
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
jaroslav@68
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that
|
jaroslav@68
|
15 |
* accompanied this code).
|
jaroslav@68
|
16 |
*
|
jaroslav@68
|
17 |
* You should have received a copy of the GNU General Public License version
|
jaroslav@68
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation,
|
jaroslav@68
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
jaroslav@68
|
20 |
*
|
jaroslav@68
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
jaroslav@68
|
22 |
* or visit www.oracle.com if you need additional information or have any
|
jaroslav@68
|
23 |
* questions.
|
jaroslav@68
|
24 |
*/
|
jaroslav@68
|
25 |
|
jaroslav@68
|
26 |
package java.lang;
|
jaroslav@68
|
27 |
|
jaroslav@68
|
28 |
/**
|
jaroslav@68
|
29 |
* Common superclass of exceptions thrown by reflective operations in
|
jaroslav@68
|
30 |
* core reflection.
|
jaroslav@68
|
31 |
*
|
jaroslav@68
|
32 |
* @see LinkageError
|
jaroslav@68
|
33 |
* @since 1.7
|
jaroslav@68
|
34 |
*/
|
jaroslav@68
|
35 |
public class ReflectiveOperationException extends Exception {
|
jaroslav@68
|
36 |
static final long serialVersionUID = 123456789L;
|
jaroslav@68
|
37 |
|
jaroslav@68
|
38 |
/**
|
jaroslav@68
|
39 |
* Constructs a new exception with {@code null} as its detail
|
jaroslav@68
|
40 |
* message. The cause is not initialized, and may subsequently be
|
jaroslav@68
|
41 |
* initialized by a call to {@link #initCause}.
|
jaroslav@68
|
42 |
*/
|
jaroslav@68
|
43 |
public ReflectiveOperationException() {
|
jaroslav@68
|
44 |
super();
|
jaroslav@68
|
45 |
}
|
jaroslav@68
|
46 |
|
jaroslav@68
|
47 |
/**
|
jaroslav@68
|
48 |
* Constructs a new exception with the specified detail message.
|
jaroslav@68
|
49 |
* The cause is not initialized, and may subsequently be
|
jaroslav@68
|
50 |
* initialized by a call to {@link #initCause}.
|
jaroslav@68
|
51 |
*
|
jaroslav@68
|
52 |
* @param message the detail message. The detail message is saved for
|
jaroslav@68
|
53 |
* later retrieval by the {@link #getMessage()} method.
|
jaroslav@68
|
54 |
*/
|
jaroslav@68
|
55 |
public ReflectiveOperationException(String message) {
|
jaroslav@68
|
56 |
super(message);
|
jaroslav@68
|
57 |
}
|
jaroslav@68
|
58 |
|
jaroslav@68
|
59 |
/**
|
jaroslav@68
|
60 |
* Constructs a new exception with the specified detail message
|
jaroslav@68
|
61 |
* and cause.
|
jaroslav@68
|
62 |
*
|
jaroslav@68
|
63 |
* <p>Note that the detail message associated with
|
jaroslav@68
|
64 |
* {@code cause} is <em>not</em> automatically incorporated in
|
jaroslav@68
|
65 |
* this exception's detail message.
|
jaroslav@68
|
66 |
*
|
jaroslav@68
|
67 |
* @param message the detail message (which is saved for later retrieval
|
jaroslav@68
|
68 |
* by the {@link #getMessage()} method).
|
jaroslav@68
|
69 |
* @param cause the cause (which is saved for later retrieval by the
|
jaroslav@68
|
70 |
* {@link #getCause()} method). (A {@code null} value is
|
jaroslav@68
|
71 |
* permitted, and indicates that the cause is nonexistent or
|
jaroslav@68
|
72 |
* unknown.)
|
jaroslav@68
|
73 |
*/
|
jaroslav@68
|
74 |
public ReflectiveOperationException(String message, Throwable cause) {
|
jaroslav@68
|
75 |
super(message, cause);
|
jaroslav@68
|
76 |
}
|
jaroslav@68
|
77 |
|
jaroslav@68
|
78 |
/**
|
jaroslav@68
|
79 |
* Constructs a new exception with the specified cause and a detail
|
jaroslav@68
|
80 |
* message of {@code (cause==null ? null : cause.toString())} (which
|
jaroslav@68
|
81 |
* typically contains the class and detail message of {@code cause}).
|
jaroslav@68
|
82 |
*
|
jaroslav@68
|
83 |
* @param cause the cause (which is saved for later retrieval by the
|
jaroslav@68
|
84 |
* {@link #getCause()} method). (A {@code null} value is
|
jaroslav@68
|
85 |
* permitted, and indicates that the cause is nonexistent or
|
jaroslav@68
|
86 |
* unknown.)
|
jaroslav@68
|
87 |
*/
|
jaroslav@68
|
88 |
public ReflectiveOperationException(Throwable cause) {
|
jaroslav@68
|
89 |
super(cause);
|
jaroslav@68
|
90 |
}
|
jaroslav@68
|
91 |
}
|