1 *java.lang.Exception* *Exception* The class Exception and its subclasses are a f
4 extends |java.lang.Throwable|
6 |java.lang.Exception_Description|
7 |java.lang.Exception_Fields|
8 |java.lang.Exception_Constructors|
9 |java.lang.Exception_Methods|
11 ================================================================================
13 *java.lang.Exception_Constructors*
14 |java.lang.Exception()|Constructs a new exception with null as its detail messa
15 |java.lang.Exception(String)|Constructs a new exception with the specified deta
16 |java.lang.Exception(String,Throwable)|Constructs a new exception with the spec
17 |java.lang.Exception(Throwable)|Constructs a new exception with the specified c
19 *java.lang.Exception_Description*
21 The class Exception and its subclasses are a form of Throwable that indicates
22 conditions that a reasonable application might want to catch.
25 *java.lang.Exception()*
29 Constructs a new exception with null as its detail message. The cause is not
30 initialized, and may subsequently be initialized by a call to
31 (|java.lang.Exception|) .
34 *java.lang.Exception(String)*
36 public Exception(java.lang.String message)
38 Constructs a new exception with the specified detail message. The cause is not
39 initialized, and may subsequently be initialized by a call to
40 (|java.lang.Exception|) .
42 message - the detail message. The detail message is saved for later retrieval by the
43 {@link #getMessage()} method.
45 *java.lang.Exception(String,Throwable)*
48 java.lang.String message,
49 java.lang.Throwable cause)
51 Constructs a new exception with the specified detail message and cause. Note
52 that the detail message associated with cause is not automatically incorporated
53 in this exception's detail message.
55 message - the detail message (which is saved for later retrieval by the {@link
56 #getMessage()} method).
57 cause - the cause (which is saved for later retrieval by the {@link #getCause()}
58 method). (A null value is permitted, and indicates that the cause is
59 nonexistent or unknown.)
61 *java.lang.Exception(Throwable)*
63 public Exception(java.lang.Throwable cause)
65 Constructs a new exception with the specified cause and a detail message of
66 (cause==null ? null : cause.toString()) (which typically contains the class and
67 detail message of cause). This constructor is useful for exceptions that are
68 little more than wrappers for other throwables (for example,
69 (|java.security.PrivilegedActionException|) ).
71 cause - the cause (which is saved for later retrieval by the {@link #getCause()}
72 method). (A null value is permitted, and indicates that the cause is
73 nonexistent or unknown.)