2362N/A * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * The subclass of {@link SQLException} thrown in situations where a 0N/A * previously failed operation might be able to succeed if the application performs 0N/A * some recovery steps and retries the entire transaction or in the case of a 0N/A * distributed transaction, the transaction branch. At a minimum, 0N/A * the recovery operation must include closing the current connection and getting 0N/A * Constructs a <code>SQLRecoverableException</code> object. 0N/A * The <code>reason</code>, <code>SQLState</code> are initialized 0N/A * to <code>null</code> and the vendor code is initialized to 0. 0N/A * The <code>cause</code> is not initialized, and may subsequently be 0N/A * initialized by a call to the 0N/A * {@link Throwable#initCause(java.lang.Throwable)} method. 0N/A * Constructs a <code>SQLRecoverableException</code> object 0N/A * with a given <code>reason</code>. The <code>SQLState</code> 0N/A * is initialized to <code>null</code> and the vender code is initialized 0N/A * The <code>cause</code> is not initialized, and may subsequently be 0N/A * initialized by a call to the 0N/A * {@link Throwable#initCause(java.lang.Throwable)} method. 0N/A * @param reason a description of the exception 0N/A * Constructs a <code>SQLRecoverableException</code> object 0N/A * with a given <code>reason</code> and <code>SQLState</code>. 0N/A * The <code>cause</code> is not initialized, and may subsequently be 0N/A * initialized by a call to the 0N/A * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code 0N/A * is initialized to 0. 0N/A * @param reason a description of the exception 0N/A * @param SQLState an XOPEN or SQL:2003 code identifying the exception 0N/A * Constructs a <code>SQLRecoverableException</code> object 0N/A * with a given <code>reason</code>, <code>SQLState</code> and 0N/A * <code>vendorCode</code>. 0N/A * The <code>cause</code> is not initialized, and may subsequently be 0N/A * initialized by a call to the 0N/A * {@link Throwable#initCause(java.lang.Throwable)} method. 0N/A * @param reason a description of the exception 0N/A * @param SQLState an XOPEN or SQL:2003 code identifying the exception 0N/A * @param vendorCode a database vendor specific exception code 0N/A * Constructs a <code>SQLRecoverableException</code> object 0N/A * with a given <code>cause</code>. 0N/A * The <code>SQLState</code> is initialized 0N/A * to <code>null</code> and the vendor code is initialized to 0. 0N/A * The <code>reason</code> is initialized to <code>null</code> if 0N/A * <code>cause==null</code> or to <code>cause.toString()</code> if 0N/A * <code>cause!=null</code>. 0N/A * @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 0N/A * the cause is non-existent or unknown. 0N/A * Constructs a <code>SQLRecoverableException</code> object 0N/A * <code>reason</code> and <code>cause</code>. 0N/A * The <code>SQLState</code> is initialized to <code>null</code> 0N/A * and the vendor code is initialized to 0. 0N/A * @param reason a description of the exception. 0N/A * @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 0N/A * the cause is non-existent or unknown. 0N/A * Constructs a <code>SQLRecoverableException</code> object 0N/A * <code>reason</code>, <code>SQLState</code> and <code>cause</code>. 0N/A * The vendor code is initialized to 0. 0N/A * @param reason a description of the exception. 0N/A * @param SQLState an XOPEN or SQL:2003 code identifying the exception 0N/A * @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 0N/A * the cause is non-existent or unknown. 0N/A * Constructs a <code>SQLRecoverableException</code> object 0N/A * <code>reason</code>, <code>SQLState</code>, <code>vendorCode</code> 0N/A * and <code>cause</code>. 0N/A * @param reason a description of the exception 0N/A * @param SQLState an XOPEN or SQL:2003 code identifying the exception 0N/A * @param vendorCode a database vendor-specific exception code 0N/A * @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 0N/A * the cause is non-existent or unknown.