equal
deleted
inserted
replaced
42 * to <code>null</code> and the vendor code is initialized to 0. |
42 * to <code>null</code> and the vendor code is initialized to 0. |
43 * |
43 * |
44 * The <code>cause</code> is not initialized, and may subsequently be |
44 * The <code>cause</code> is not initialized, and may subsequently be |
45 * initialized by a call to the |
45 * initialized by a call to the |
46 * {@link Throwable#initCause(java.lang.Throwable)} method. |
46 * {@link Throwable#initCause(java.lang.Throwable)} method. |
47 * <p> |
47 * |
48 * @since 1.6 |
48 * @since 1.6 |
49 */ |
49 */ |
50 public SQLTimeoutException() { |
50 public SQLTimeoutException() { |
51 super(); |
51 super(); |
52 } |
52 } |
58 * to 0. |
58 * to 0. |
59 * |
59 * |
60 * The <code>cause</code> is not initialized, and may subsequently be |
60 * The <code>cause</code> is not initialized, and may subsequently be |
61 * initialized by a call to the |
61 * initialized by a call to the |
62 * {@link Throwable#initCause(java.lang.Throwable)} method. |
62 * {@link Throwable#initCause(java.lang.Throwable)} method. |
63 * <p> |
63 * |
64 * @param reason a description of the exception |
64 * @param reason a description of the exception |
65 * @since 1.6 |
65 * @since 1.6 |
66 */ |
66 */ |
67 public SQLTimeoutException(String reason) { |
67 public SQLTimeoutException(String reason) { |
68 super(reason); |
68 super(reason); |
74 * |
74 * |
75 * The <code>cause</code> is not initialized, and may subsequently be |
75 * The <code>cause</code> is not initialized, and may subsequently be |
76 * initialized by a call to the |
76 * initialized by a call to the |
77 * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code |
77 * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code |
78 * is initialized to 0. |
78 * is initialized to 0. |
79 * <p> |
79 * |
80 * @param reason a description of the exception |
80 * @param reason a description of the exception |
81 * @param SQLState an XOPEN or SQL:2003 code identifying the exception |
81 * @param SQLState an XOPEN or SQL:2003 code identifying the exception |
82 * @since 1.6 |
82 * @since 1.6 |
83 */ |
83 */ |
84 public SQLTimeoutException(String reason, String SQLState) { |
84 public SQLTimeoutException(String reason, String SQLState) { |
91 * <code>vendorCode</code>. |
91 * <code>vendorCode</code>. |
92 * |
92 * |
93 * The <code>cause</code> is not initialized, and may subsequently be |
93 * The <code>cause</code> is not initialized, and may subsequently be |
94 * initialized by a call to the |
94 * initialized by a call to the |
95 * {@link Throwable#initCause(java.lang.Throwable)} method. |
95 * {@link Throwable#initCause(java.lang.Throwable)} method. |
96 * <p> |
96 * |
97 * @param reason a description of the exception |
97 * @param reason a description of the exception |
98 * @param SQLState an XOPEN or SQL:2003 code identifying the exception |
98 * @param SQLState an XOPEN or SQL:2003 code identifying the exception |
99 * @param vendorCode a database vendor specific exception code |
99 * @param vendorCode a database vendor specific exception code |
100 * @since 1.6 |
100 * @since 1.6 |
101 */ |
101 */ |
109 * The <code>SQLState</code> is initialized |
109 * The <code>SQLState</code> is initialized |
110 * to <code>null</code> and the vendor code is initialized to 0. |
110 * to <code>null</code> and the vendor code is initialized to 0. |
111 * The <code>reason</code> is initialized to <code>null</code> if |
111 * The <code>reason</code> is initialized to <code>null</code> if |
112 * <code>cause==null</code> or to <code>cause.toString()</code> if |
112 * <code>cause==null</code> or to <code>cause.toString()</code> if |
113 * <code>cause!=null</code>. |
113 * <code>cause!=null</code>. |
114 * <p> |
114 * |
115 * @param cause the underlying reason for this <code>SQLException</code> (which is saved for later retrieval by the <code>getCause()</code> method); may be null indicating |
115 * @param cause the underlying reason for this <code>SQLException</code> (which is saved for later retrieval by the <code>getCause()</code> method); may be null indicating |
116 * the cause is non-existent or unknown. |
116 * the cause is non-existent or unknown. |
117 * @since 1.6 |
117 * @since 1.6 |
118 */ |
118 */ |
119 public SQLTimeoutException(Throwable cause) { |
119 public SQLTimeoutException(Throwable cause) { |
124 * Constructs a <code>SQLTimeoutException</code> object |
124 * Constructs a <code>SQLTimeoutException</code> object |
125 * with a given |
125 * with a given |
126 * <code>reason</code> and <code>cause</code>. |
126 * <code>reason</code> and <code>cause</code>. |
127 * The <code>SQLState</code> is initialized to <code>null</code> |
127 * The <code>SQLState</code> is initialized to <code>null</code> |
128 * and the vendor code is initialized to 0. |
128 * and the vendor code is initialized to 0. |
129 * <p> |
129 * |
130 * @param reason a description of the exception. |
130 * @param reason a description of the exception. |
131 * @param cause the underlying reason for this <code>SQLException</code> (which is saved for later retrieval by the <code>getCause()</code> method); may be null indicating |
131 * @param cause the underlying reason for this <code>SQLException</code> (which is saved for later retrieval by the <code>getCause()</code> method); may be null indicating |
132 * the cause is non-existent or unknown. |
132 * the cause is non-existent or unknown. |
133 * @since 1.6 |
133 * @since 1.6 |
134 */ |
134 */ |
139 /** |
139 /** |
140 * Constructs a <code>SQLTimeoutException</code> object |
140 * Constructs a <code>SQLTimeoutException</code> object |
141 * with a given |
141 * with a given |
142 * <code>reason</code>, <code>SQLState</code> and <code>cause</code>. |
142 * <code>reason</code>, <code>SQLState</code> and <code>cause</code>. |
143 * The vendor code is initialized to 0. |
143 * The vendor code is initialized to 0. |
144 * <p> |
144 * |
145 * @param reason a description of the exception. |
145 * @param reason a description of the exception. |
146 * @param SQLState an XOPEN or SQL:2003 code identifying the exception |
146 * @param SQLState an XOPEN or SQL:2003 code identifying the exception |
147 * @param cause the underlying reason for this <code>SQLException</code> (which is saved for later retrieval by the <code>getCause()</code> method); may be null indicating |
147 * @param cause the underlying reason for this <code>SQLException</code> (which is saved for later retrieval by the <code>getCause()</code> method); may be null indicating |
148 * the cause is non-existent or unknown. |
148 * the cause is non-existent or unknown. |
149 * @since 1.6 |
149 * @since 1.6 |
155 /** |
155 /** |
156 * Constructs a <code>SQLTimeoutException</code> object |
156 * Constructs a <code>SQLTimeoutException</code> object |
157 * with a given |
157 * with a given |
158 * <code>reason</code>, <code>SQLState</code>, <code>vendorCode</code> |
158 * <code>reason</code>, <code>SQLState</code>, <code>vendorCode</code> |
159 * and <code>cause</code>. |
159 * and <code>cause</code>. |
160 * <p> |
160 * |
161 * @param reason a description of the exception |
161 * @param reason a description of the exception |
162 * @param SQLState an XOPEN or SQL:2003 code identifying the exception |
162 * @param SQLState an XOPEN or SQL:2003 code identifying the exception |
163 * @param vendorCode a database vendor-specific exception code |
163 * @param vendorCode a database vendor-specific exception code |
164 * @param cause the underlying reason for this <code>SQLException</code> (which is saved for later retrieval by the <code>getCause()</code> method); may be null indicating |
164 * @param cause the underlying reason for this <code>SQLException</code> (which is saved for later retrieval by the <code>getCause()</code> method); may be null indicating |
165 * the cause is non-existent or unknown. |
165 * the cause is non-existent or unknown. |