com.ibm.pdq.runtime.exception

Class HeteroBatchSQLException

  1. java.lang.Object
  2. extended byjava.lang.Throwable
  3. extended byjava.lang.Exception
  4. extended byjava.sql.SQLException
  5. extended bycom.ibm.pdq.runtime.exception.HeteroBatchSQLException
All implemented interfaces:
com.ibm.db2.jcc.DB2Diagnosable, Serializable, Iterable<Throwable>

public class HeteroBatchSQLException
extends SQLException
implements com.ibm.db2.jcc.DB2Diagnosable
See Also:
Serialized Form

Constructor Summary

Constructor and Description
HeteroBatchSQLException()
HeteroBatchSQLException(SQLException sqlExceptionToBeWrapped,int originalOffsetInChain)

Method Summary

Modifier and Type Method and Description
  1. Throwable
fillInStackTrace()
  1. int
getBatchElementOffset()
  1. com.ibm.db2.jcc.DBBindDiagnostics
getBindDiagnostics()
  1. Throwable
getCause()
  1. int
getErrorCode()
  1. String
getLocalizedMessage()
  1. String
getMessage()
  1. SQLException
getNextException()
  1. HeteroBatchSQLException
getNextHeteroBatchSQLException()
  1. int
getOriginalOffsetInChain()
  1. com.ibm.db2.jcc.DB2Sqlca
getSqlca()
  1. String
getSQLState()
  1. StackTraceElement[]
getStackTrace()
  1. int
getStmtOffset()
  1. Throwable
getThrowable()
  1. SQLException
getUnderlyingSQLException()
  1. boolean
implementsDB2Diagnosable()
  1. Throwable
initCause(Throwable throwable)
  1. boolean
isRowSpecificSQLException()
  1. void
printStackTrace()
  1. void
printStackTrace(PrintStream err)
  1. void
printStackTrace(PrintWriter err)
  1. void
printTrace(PrintWriter printWriter,String messageHeader)
  1. void
setNextException(SQLException ex)
  1. void
setNextHeteroBatchSQLException(HeteroBatchSQLException ex)
  1. void
setStackTrace(StackTraceElement[] trace)
  1. String
toString()
Methods inherited from class java.sql.SQLException
iterator
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

HeteroBatchSQLException

public HeteroBatchSQLException(
)

HeteroBatchSQLException

public HeteroBatchSQLException(
SQLException sqlExceptionToBeWrapped,
                    int originalOffsetInChain)
Parameters:
originalOffsetInChain - The position of the underlying SQLException in the chain of SQLException. The position is a zero based offset.

Method Detail

fillInStackTrace

public Throwable fillInStackTrace(
)
Overrides:

getBatchElementOffset

public int getBatchElementOffset(
)

getBindDiagnostics

public com.ibm.db2.jcc.DBBindDiagnostics getBindDiagnostics(
)
Specified by:
getBindDiagnostics in interface com.ibm.db2.jcc.DB2Diagnosable

getCause

public Throwable getCause()
Overrides:
getCause in class Throwable

getErrorCode

public int getErrorCode()
Overrides:

getLocalizedMessage

public String getLocalizedMessage(
)
Overrides:

getMessage

public String getMessage()
Overrides:

getNextException

public SQLException getNextException(
)
Overrides:

getNextHeteroBatchSQLException

public HeteroBatchSQLException getNextHeteroBatchSQLException(
)

getOriginalOffsetInChain

public int getOriginalOffsetInChain(
)
Returns:
the originalOffsetInChain

getSqlca

public com.ibm.db2.jcc.DB2Sqlca getSqlca(
)
Specified by:
getSqlca in interface com.ibm.db2.jcc.DB2Diagnosable

getSQLState

public String getSQLState()
Overrides:

getStackTrace

public StackTraceElement[] getStackTrace(
)
Overrides:

getStmtOffset

public int getStmtOffset()

getThrowable

public Throwable getThrowable()
Specified by:
getThrowable in interface com.ibm.db2.jcc.DB2Diagnosable

getUnderlyingSQLException

public SQLException getUnderlyingSQLException(
)

implementsDB2Diagnosable

public boolean implementsDB2Diagnosable(
)

initCause

public Throwable initCause(Throwable throwable)
Overrides:
initCause in class Throwable

isRowSpecificSQLException

public boolean isRowSpecificSQLException(
)

printStackTrace

public void printStackTrace()
Overrides:

printStackTrace

public void printStackTrace(PrintStream err)
Overrides:

printStackTrace

public void printStackTrace(PrintWriter err)
Overrides:

printTrace

public void printTrace(PrintWriter printWriter,
                      String messageHeader)
Specified by:
printTrace in interface com.ibm.db2.jcc.DB2Diagnosable

setNextException

public void setNextException(SQLException ex)
Overrides:

setNextHeteroBatchSQLException

public void setNextHeteroBatchSQLException(
HeteroBatchSQLException ex)

setStackTrace

public void setStackTrace(StackTraceElement[] trace)
Overrides:

toString

public String toString()
Overrides:
toString in class Throwable