JDBC Reference
Page 13 of 31

java.sql.SQLException

Cloudscape supplies values for the getMessage(), getSQLState(), and getErrorCode() calls of SQLExceptions. In addition, Cloudscape sometimes returns multiple SQLExceptions using the nextException chain. The first exception is always the most severe exception, with SQL-92 Standard exceptions preceding those that are specific to Cloudscape. For information on processing SQLExceptions, see Working with Cloudscape SQLExceptions in an Application in the Cloudscape Developer's Guide.