SQLException.SQLException

SQLException.SQLException

Class Overview | Class Members | This Package | All Packages

Syntax 1
public SQLException( String reason, String SQLState, int vendorCode )
Parameters
reason
a description of the exception
SQLState
an XOPEN code identifying the exception
vendorCode
a database vendor specific exception code
Description
Construct a fully-specified SQLException



Syntax 2
public SQLException( String reason, String SQLState )
Parameters
reason
a description of the exception
SQLState
an XOPEN code identifying the exception
Description
Construct an SQLException with a reason and SQLState; vendorCode defaults to 0.



Syntax 3
public SQLException( String reason )
Parameters
reason
a description of the exception
Description
Construct an SQLException with a reason; SQLState defaults to null and vendorCode defaults to 0.



Syntax 4
public SQLException()
Description
Construct an SQLException; reason defaults to null, SQLState defaults to null and vendorCode defaults to 0.