Try OpenEdge Now
skip to main content
SQL Reference
JDBC Reference : Java Class Reference : DhSQLException : DhSQLException.getDiagnostics : Throws
 
Throws
DhSQLException

Example

This code fragment illustrates DhSQLException.getDiagnostics:
try
{ SQLIStatement insert_cust = new SQLIStatement (
"INSERT INTO customer VALUES (1,2) ");
}catch (DhSQLException e)
{ errstate = e.getDiagnostics (RETURNED_SQLSTATE) ;
errmesg = e.getDiagnostics (MESSAGE_TEXT) ;
.
.
.
}