Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.client.am
Class SqlException  view SqlException download SqlException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.sql.SQLException
              extended byorg.apache.derby.client.am.SqlException
All Implemented Interfaces:
Diagnosable, java.io.Serializable
Direct Known Subclasses:
ColumnIndexOutOfBoundsException, ColumnTypeConversionException, DisconnectException, LossOfPrecisionConversionException, NumberFormatConversionException

public class SqlException
extends java.sql.SQLException
implements Diagnosable


Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private  java.lang.String batchPositionLabel_
           
protected  Sqlca sqlca_
           
(package private)  java.lang.Throwable throwable_
           
 
Fields inherited from class java.sql.SQLException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
SqlException(LogWriter logWriter)
           
SqlException(LogWriter logWriter, ErrorKey errorKey)
           
SqlException(LogWriter logWriter, ErrorKey errorKey, java.lang.Object arg)
           
SqlException(LogWriter logWriter, ErrorKey errorKey, java.lang.Object[] args)
           
SqlException(LogWriter logWriter, Sqlca sqlca)
           
SqlException(LogWriter logWriter, java.lang.String reason)
           
SqlException(LogWriter logWriter, java.lang.String reason, SqlState sqlState)
           
SqlException(LogWriter logWriter, java.lang.String reason, SqlState sqlState, SqlCode errorCode)
           
SqlException(LogWriter logWriter, java.lang.String reason, java.lang.String sqlState)
           
SqlException(LogWriter logWriter, java.lang.String reason, java.lang.String sqlState, int errorCode)
           
SqlException(LogWriter logWriter, java.lang.Throwable throwable, java.lang.String reason)
           
SqlException(LogWriter logWriter, java.lang.Throwable throwable, java.lang.String reason, SqlState sqlstate)
           
SqlException(LogWriter logWriter, java.lang.Throwable throwable, java.lang.String reason, SqlState sqlState, SqlCode errorCode)
           
SqlException(LogWriter logWriter, java.lang.Throwable throwable, java.lang.String reason, java.lang.String sqlstate)
           
SqlException(LogWriter logWriter, java.lang.Throwable throwable, java.lang.String reason, java.lang.String sqlState, int errorCode)
           
 
Method Summary
(package private)  SqlException copyAsUnchainedSQLException(LogWriter logWriter)
           
 int getErrorCode()
          This method returns the vendor specific error code associated with this error.
 java.lang.String getMessage()
          Get the message associated with this Throwable.
 Sqlca getSqlca()
           
 java.lang.String getSQLState()
          This method returns the SQLState information associated with this error.
 java.lang.Throwable getThrowable()
           
 void printTrace(java.io.PrintWriter printWriter, java.lang.String header)
           
(package private)  void setBatchPositionLabel(int index)
           
 
Methods inherited from class java.sql.SQLException
getNextException, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

throwable_

java.lang.Throwable throwable_

sqlca_

protected Sqlca sqlca_

batchPositionLabel_

private java.lang.String batchPositionLabel_
Constructor Detail

SqlException

public SqlException(LogWriter logWriter,
                    ErrorKey errorKey)

SqlException

public SqlException(LogWriter logWriter,
                    ErrorKey errorKey,
                    java.lang.Object[] args)

SqlException

public SqlException(LogWriter logWriter,
                    ErrorKey errorKey,
                    java.lang.Object arg)

SqlException

public SqlException(LogWriter logWriter,
                    Sqlca sqlca)

SqlException

public SqlException(LogWriter logWriter)

SqlException

public SqlException(LogWriter logWriter,
                    java.lang.String reason)

SqlException

public SqlException(LogWriter logWriter,
                    java.lang.Throwable throwable,
                    java.lang.String reason)

SqlException

public SqlException(LogWriter logWriter,
                    java.lang.Throwable throwable,
                    java.lang.String reason,
                    SqlState sqlstate)

SqlException

public SqlException(LogWriter logWriter,
                    java.lang.Throwable throwable,
                    java.lang.String reason,
                    java.lang.String sqlstate)

SqlException

public SqlException(LogWriter logWriter,
                    java.lang.String reason,
                    SqlState sqlState)

SqlException

public SqlException(LogWriter logWriter,
                    java.lang.String reason,
                    java.lang.String sqlState)

SqlException

public SqlException(LogWriter logWriter,
                    java.lang.String reason,
                    SqlState sqlState,
                    SqlCode errorCode)

SqlException

public SqlException(LogWriter logWriter,
                    java.lang.String reason,
                    java.lang.String sqlState,
                    int errorCode)

SqlException

public SqlException(LogWriter logWriter,
                    java.lang.Throwable throwable,
                    java.lang.String reason,
                    SqlState sqlState,
                    SqlCode errorCode)

SqlException

public SqlException(LogWriter logWriter,
                    java.lang.Throwable throwable,
                    java.lang.String reason,
                    java.lang.String sqlState,
                    int errorCode)
Method Detail

setBatchPositionLabel

void setBatchPositionLabel(int index)

getSqlca

public Sqlca getSqlca()
Specified by:
getSqlca in interface Diagnosable

getThrowable

public java.lang.Throwable getThrowable()
Specified by:
getThrowable in interface Diagnosable

getMessage

public java.lang.String getMessage()
Description copied from class: java.lang.Throwable
Get the message associated with this Throwable.


getSQLState

public java.lang.String getSQLState()
Description copied from class: java.sql.SQLException
This method returns the SQLState information associated with this error. The value returned is a String which is formatted using the XOPEN SQL state conventions.


getErrorCode

public int getErrorCode()
Description copied from class: java.sql.SQLException
This method returns the vendor specific error code associated with this error.


printTrace

public void printTrace(java.io.PrintWriter printWriter,
                       java.lang.String header)
Specified by:
printTrace in interface Diagnosable

copyAsUnchainedSQLException

SqlException copyAsUnchainedSQLException(LogWriter logWriter)