SQLException Methods
You use these methods when a SQLException object has been created.
getErrorCode
sqlexception.getErrorCode()
Returns the error code from the vendor.
getMessage
sqlexception.getMessage()
Inherited from Throwable, this methods returns the message string for Throwable.
getNextException
sqlexception.getNextException()
Returns the next SQLException or null if there is none.
getSQLState
sqlexception.getSQLState()
Returns a SQLState identifier.
printStackTrace
sqlexception.printStackTrace(PrintStream s)
Inherited from the Throwable class, this method prints the stack trace to the standard error stream.
setNextException
setNextException(sqlexception e)
Adds a SQLException.