The `SQLException` provides `getErrorCode()` (the DB2 SQLCODE) and `getSQLState()` (the standard 5-character state code). These are essential for DBA diagnosis.