SQLException Methods

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.



Mastering MySQL 4
Mastering MySQL 4
ISBN: 0782141625
EAN: 2147483647
Year: 2003
Pages: 230
Authors: Ian Gilfillan

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net