jdk/src/share/classes/java/sql/SQLTransientConnectionException.java
changeset 23590 ffd8b0b70511
parent 23010 6dadb192ad81
equal deleted inserted replaced
23589:05e692d15fcd 23590:ffd8b0b70511
    43          * to <code>null</code> and the vendor code is initialized to 0.
    43          * to <code>null</code> and the vendor code is initialized to 0.
    44          *
    44          *
    45          * The <code>cause</code> is not initialized, and may subsequently be
    45          * The <code>cause</code> is not initialized, and may subsequently be
    46          * initialized by a call to the
    46          * initialized by a call to the
    47          * {@link Throwable#initCause(java.lang.Throwable)} method.
    47          * {@link Throwable#initCause(java.lang.Throwable)} method.
    48          * <p>
    48          *
    49          * @since 1.6
    49          * @since 1.6
    50          */
    50          */
    51         public SQLTransientConnectionException() {
    51         public SQLTransientConnectionException() {
    52                 super();
    52                 super();
    53         }
    53         }
    59          * to 0.
    59          * to 0.
    60          *
    60          *
    61          * The <code>cause</code> is not initialized, and may subsequently be
    61          * The <code>cause</code> is not initialized, and may subsequently be
    62          * initialized by a call to the
    62          * initialized by a call to the
    63          * {@link Throwable#initCause(java.lang.Throwable)} method.
    63          * {@link Throwable#initCause(java.lang.Throwable)} method.
    64          * <p>
    64          *
    65          * @param reason a description of the exception
    65          * @param reason a description of the exception
    66          * @since 1.6
    66          * @since 1.6
    67          */
    67          */
    68         public SQLTransientConnectionException(String reason) {
    68         public SQLTransientConnectionException(String reason) {
    69                 super(reason);
    69                 super(reason);
    75          *
    75          *
    76          * The <code>cause</code> is not initialized, and may subsequently be
    76          * The <code>cause</code> is not initialized, and may subsequently be
    77          * initialized by a call to the
    77          * initialized by a call to the
    78          * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code
    78          * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code
    79          * is initialized to 0.
    79          * is initialized to 0.
    80          * <p>
    80          *
    81          * @param reason a description of the exception
    81          * @param reason a description of the exception
    82          * @param SQLState an XOPEN or SQL:2003 code identifying the exception
    82          * @param SQLState an XOPEN or SQL:2003 code identifying the exception
    83          * @since 1.6
    83          * @since 1.6
    84          */
    84          */
    85         public SQLTransientConnectionException(String reason, String SQLState) {
    85         public SQLTransientConnectionException(String reason, String SQLState) {
    92          * <code>vendorCode</code>.
    92          * <code>vendorCode</code>.
    93          *
    93          *
    94          * The <code>cause</code> is not initialized, and may subsequently be
    94          * The <code>cause</code> is not initialized, and may subsequently be
    95          * initialized by a call to the
    95          * initialized by a call to the
    96          * {@link Throwable#initCause(java.lang.Throwable)} method.
    96          * {@link Throwable#initCause(java.lang.Throwable)} method.
    97          * <p>
    97          *
    98          * @param reason a description of the exception
    98          * @param reason a description of the exception
    99          * @param SQLState an XOPEN or SQL:2003 code identifying the exception
    99          * @param SQLState an XOPEN or SQL:2003 code identifying the exception
   100          * @param vendorCode a database vendor specific exception code
   100          * @param vendorCode a database vendor specific exception code
   101          * @since 1.6
   101          * @since 1.6
   102          */
   102          */
   110      * The <code>SQLState</code> is initialized
   110      * The <code>SQLState</code> is initialized
   111      * to <code>null</code> and the vendor code is initialized to 0.
   111      * to <code>null</code> and the vendor code is initialized to 0.
   112      * The <code>reason</code>  is initialized to <code>null</code> if
   112      * The <code>reason</code>  is initialized to <code>null</code> if
   113      * <code>cause==null</code> or to <code>cause.toString()</code> if
   113      * <code>cause==null</code> or to <code>cause.toString()</code> if
   114      * <code>cause!=null</code>.
   114      * <code>cause!=null</code>.
   115      * <p>
   115      *
   116      * @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      * @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
   117      *     the cause is non-existent or unknown.
   117      *     the cause is non-existent or unknown.
   118      * @since 1.6
   118      * @since 1.6
   119     */
   119     */
   120     public SQLTransientConnectionException(Throwable cause) {
   120     public SQLTransientConnectionException(Throwable cause) {
   125      * Constructs a <code>SQLTransientConnectionException</code> object
   125      * Constructs a <code>SQLTransientConnectionException</code> object
   126      * with a given
   126      * with a given
   127      * <code>reason</code> and  <code>cause</code>.
   127      * <code>reason</code> and  <code>cause</code>.
   128      * The <code>SQLState</code> is  initialized to <code>null</code>
   128      * The <code>SQLState</code> is  initialized to <code>null</code>
   129      * and the vendor code is initialized to 0.
   129      * and the vendor code is initialized to 0.
   130      * <p>
   130      *
   131      * @param reason a description of the exception.
   131      * @param reason a description of the exception.
   132      * @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      * @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
   133      *     the cause is non-existent or unknown.
   133      *     the cause is non-existent or unknown.
   134     * @since 1.6
   134     * @since 1.6
   135      */
   135      */
   140     /**
   140     /**
   141      * Constructs a <code>SQLTransientConnectionException</code> object
   141      * Constructs a <code>SQLTransientConnectionException</code> object
   142      * with a given
   142      * with a given
   143      * <code>reason</code>, <code>SQLState</code> and  <code>cause</code>.
   143      * <code>reason</code>, <code>SQLState</code> and  <code>cause</code>.
   144      * The vendor code is initialized to 0.
   144      * The vendor code is initialized to 0.
   145      * <p>
   145      *
   146      * @param reason a description of the exception.
   146      * @param reason a description of the exception.
   147      * @param SQLState an XOPEN or SQL:2003 code identifying the exception
   147      * @param SQLState an XOPEN or SQL:2003 code identifying the exception
   148      * @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      * @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
   149      *     the cause is non-existent or unknown.
   149      *     the cause is non-existent or unknown.
   150      * @since 1.6
   150      * @since 1.6
   156     /**
   156     /**
   157      *  Constructs a <code>SQLTransientConnectionException</code> object
   157      *  Constructs a <code>SQLTransientConnectionException</code> object
   158      * with a given
   158      * with a given
   159      * <code>reason</code>, <code>SQLState</code>, <code>vendorCode</code>
   159      * <code>reason</code>, <code>SQLState</code>, <code>vendorCode</code>
   160      * and  <code>cause</code>.
   160      * and  <code>cause</code>.
   161      * <p>
   161      *
   162      * @param reason a description of the exception
   162      * @param reason a description of the exception
   163      * @param SQLState an XOPEN or SQL:2003 code identifying the exception
   163      * @param SQLState an XOPEN or SQL:2003 code identifying the exception
   164      * @param vendorCode a database vendor-specific exception code
   164      * @param vendorCode a database vendor-specific exception code
   165      * @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      * @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
   166      *     the cause is non-existent or unknown.
   166      *     the cause is non-existent or unknown.