Save This Page
Home » MySQL-JDBC-5.1.11 » com.mysql.jdbc » [javadoc | source]
com.mysql.jdbc
public class: SQLError [javadoc | source]
java.lang.Object
   com.mysql.jdbc.SQLError
SQLError is a utility class that maps MySQL error codes to X/Open error codes as is required by the JDBC spec.
Field Summary
static final  int ER_WARNING_NOT_COMPLETE_ROLLBACK     
public static final  String SQL_STATE_BASE_TABLE_NOT_FOUND     
public static final  String SQL_STATE_BASE_TABLE_OR_VIEW_ALREADY_EXISTS     
public static final  String SQL_STATE_BASE_TABLE_OR_VIEW_NOT_FOUND     
public static final  String SQL_STATE_COLUMN_ALREADY_EXISTS     
public static final  String SQL_STATE_COLUMN_NOT_FOUND     
public static final  String SQL_STATE_COMMUNICATION_LINK_FAILURE     
public static final  String SQL_STATE_CONNECTION_FAIL_DURING_TX     
public static final  String SQL_STATE_CONNECTION_IN_USE     
public static final  String SQL_STATE_CONNECTION_NOT_OPEN     
public static final  String SQL_STATE_CONNECTION_REJECTED     
public static final  String SQL_STATE_DATE_TRUNCATED     
public static final  String SQL_STATE_DATETIME_FIELD_OVERFLOW     
public static final  String SQL_STATE_DEADLOCK     
public static final  String SQL_STATE_DISCONNECT_ERROR     
public static final  String SQL_STATE_DIVISION_BY_ZERO     
public static final  String SQL_STATE_DRIVER_NOT_CAPABLE     
public static final  String SQL_STATE_ERROR_IN_ROW     
public static final  String SQL_STATE_GENERAL_ERROR     
public static final  String SQL_STATE_ILLEGAL_ARGUMENT     
public static final  String SQL_STATE_INDEX_ALREADY_EXISTS     
public static final  String SQL_STATE_INDEX_NOT_FOUND     
public static final  String SQL_STATE_INSERT_VALUE_LIST_NO_MATCH_COL_LIST     
public static final  String SQL_STATE_INVALID_AUTH_SPEC     
public static final  String SQL_STATE_INVALID_CHARACTER_VALUE_FOR_CAST     
public static final  String SQL_STATE_INVALID_COLUMN_NUMBER     
public static final  String SQL_STATE_INVALID_CONNECTION_ATTRIBUTE     
public static final  String SQL_STATE_MEMORY_ALLOCATION_FAILURE     
public static final  String SQL_STATE_MORE_THAN_ONE_ROW_UPDATED_OR_DELETED     
public static final  String SQL_STATE_NO_DEFAULT_FOR_COLUMN     
public static final  String SQL_STATE_NO_ROWS_UPDATED_OR_DELETED     
public static final  String SQL_STATE_NUMERIC_VALUE_OUT_OF_RANGE     
public static final  String SQL_STATE_PRIVILEGE_NOT_REVOKED     
public static final  String SQL_STATE_SYNTAX_ERROR     
public static final  String SQL_STATE_TIMEOUT_EXPIRED     
public static final  String SQL_STATE_TRANSACTION_RESOLUTION_UNKNOWN     
public static final  String SQL_STATE_UNABLE_TO_CONNECT_TO_DATASOURCE     
public static final  String SQL_STATE_WRONG_NO_OF_PARAMETERS     
public static final  String SQL_STATE_INVALID_TRANSACTION_TERMINATION     
Method from com.mysql.jdbc.SQLError Summary:
convertShowWarningsToSQLWarnings,   convertShowWarningsToSQLWarnings,   createCommunicationsException,   createLinkFailureMessageBasedOnHeuristics,   createSQLException,   createSQLException,   createSQLException,   createSQLException,   createSQLException,   createSQLException,   createSQLException,   createSQLException,   dumpSqlStatesMappingsAsXml,   get,   mysqlToSqlState,   notImplemented
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.mysql.jdbc.SQLError Detail:
 static SQLWarning convertShowWarningsToSQLWarnings(Connection connection) throws SQLException 
    Turns output of 'SHOW WARNINGS' into JDBC SQLWarning instances. If 'forTruncationOnly' is true, only looks for truncation warnings, and actually throws DataTruncation as an exception.
 static SQLWarning convertShowWarningsToSQLWarnings(Connection connection,
    int warningCountIfKnown,
    boolean forTruncationOnly) throws SQLException 
    Turns output of 'SHOW WARNINGS' into JDBC SQLWarning instances. If 'forTruncationOnly' is true, only looks for truncation warnings, and actually throws DataTruncation as an exception.
 public static SQLException createCommunicationsException(ConnectionImpl conn,
    long lastPacketSentTimeMs,
    long lastPacketReceivedTimeMs,
    Exception underlyingException,
    ExceptionInterceptor interceptor) 
 public static String createLinkFailureMessageBasedOnHeuristics(ConnectionImpl conn,
    long lastPacketSentTimeMs,
    long lastPacketReceivedTimeMs,
    Exception underlyingException,
    boolean streamingResultSetInPlay) 
    Creates a communications link failure message to be used in CommunicationsException that (hopefully) has some better information and suggestions based on heuristics.
 public static SQLException createSQLException(String message,
    ExceptionInterceptor interceptor) 
 public static SQLException createSQLException(String message,
    String sqlState,
    ExceptionInterceptor interceptor) 
 public static SQLException createSQLException(String message,
    ExceptionInterceptor interceptor,
    Connection conn) 
 public static SQLException createSQLException(String message,
    String sqlState,
    Throwable cause,
    ExceptionInterceptor interceptor) 
 public static SQLException createSQLException(String message,
    String sqlState,
    int vendorErrorCode,
    ExceptionInterceptor interceptor) 
 public static SQLException createSQLException(String message,
    String sqlState,
    Throwable cause,
    ExceptionInterceptor interceptor,
    Connection conn) 
 public static SQLException createSQLException(String message,
    String sqlState,
    int vendorErrorCode,
    boolean isTransient,
    ExceptionInterceptor interceptor) 
 public static SQLException createSQLException(String message,
    String sqlState,
    int vendorErrorCode,
    boolean isTransient,
    ExceptionInterceptor interceptor,
    Connection conn) 
 public static  void dumpSqlStatesMappingsAsXml() throws Exception 
 static String get(String stateCode) 
 static String mysqlToSqlState(int errno,
    boolean useSql92States) 
    Map MySQL error codes to X/Open or SQL-92 error codes
 public static SQLException notImplemented()