IT. Expert System.

Android Reference

SQLException


java.sql

Class SQLException

    • Constructor Detail

      • SQLException

        public SQLException()
        Creates an SQLException object. The reason string is set to null, the SQLState string is set to null and the error code is set to 0.
      • SQLException

        public SQLException(String theReason)
        Creates an SQLException object. The reason string is set to the given reason string, the SQLState string is set to null and the error code is set to 0.
        Parameters:
        theReason - the string to use as the Reason string
      • SQLException

        public SQLException(String theReason,
                    String theSQLState)
        Creates an SQLException object. The reason string is set to the given reason string, the SQLState string is set to the given SQLState string and the error code is set to 0.
        Parameters:
        theReason - the string to use as the reason string.
        theSQLState - the string to use as the SQLState string.
      • SQLException

        public SQLException(String theReason,
                    String theSQLState,
                    int theErrorCode)
        Creates an SQLException object. The reason string is set to the given reason string, the SQLState string is set to the given SQLState string and the error code is set to the given error code value.
        Parameters:
        theReason - the string to use as the reason string.
        theSQLState - the string to use as the SQLState string.
        theErrorCode - the integer value for the error code.
      • SQLException

        public SQLException(Throwable theCause)
        Creates an SQLException object. The Reason string is set to the null if cause == null or cause.toString() if cause!=null,and the cause Throwable object is set to the given cause Throwable object.
        Parameters:
        theCause - the Throwable object for the underlying reason this SQLException
        Since:
        1.6
      • SQLException

        public SQLException(String theReason,
                    Throwable theCause)
        Creates an SQLException object. The Reason string is set to the given and the cause Throwable object is set to the given cause Throwable object.
        Parameters:
        theReason - the string to use as the Reason string
        theCause - the Throwable object for the underlying reason this SQLException
        Since:
        1.6
      • SQLException

        public SQLException(String theReason,
                    String theSQLState,
                    Throwable theCause)
        Creates an SQLException object. The Reason string is set to the given reason string, the SQLState string is set to the given SQLState string and the cause Throwable object is set to the given cause Throwable object.
        Parameters:
        theReason - the string to use as the Reason string
        theSQLState - the string to use as the SQLState string
        theCause - the Throwable object for the underlying reason this SQLException
        Since:
        1.6
      • SQLException

        public SQLException(String theReason,
                    String theSQLState,
                    int theErrorCode,
                    Throwable theCause)
        Creates an SQLException object. The Reason string is set to the given reason string, the SQLState string is set to the given SQLState string , the Error Code is set to the given error code value, and the cause Throwable object is set to the given cause Throwable object.
        Parameters:
        theReason - the string to use as the Reason string
        theSQLState - the string to use as the SQLState string
        theErrorCode - the integer value for the error code
        theCause - the Throwable object for the underlying reason this SQLException
        Since:
        1.6
    • Method Detail

      • getErrorCode

        public int getErrorCode()
        Returns the integer error code for this SQLException.
        Returns:
        The integer error code for this SQLException. The meaning of the code is specific to the vendor of the database.
      • getNextException

        public SQLException getNextException()
        Retrieves the SQLException chained to this SQLException, if any.
        Returns:
        The SQLException chained to this SQLException. null if there is no SQLException chained to this SQLException.
      • getSQLState

        public String getSQLState()
        Retrieves the SQLState description string for this SQLException object.
        Returns:
        The SQLState string for this SQLException object. This is an error description string which follows either the SQL 99 conventions or the X/OPEN SQLstate conventions. The potential values of the SQLState string are described in each of the specifications. Which of the conventions is being used by the SQLState string can be discovered by using the getSQLStateType method of the DatabaseMetaData interface.
      • setNextException

        public void setNextException(SQLException ex)
        Obsolete. Appends ex to the end of this chain.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 153 / . Delta: 0.04720 с