ex = new SQLException(message, sqlState, errCode);
} else if (sqlState.startsWith(SQLState.CONNECTIVITY_PREFIX) ||
errCode >= ExceptionSeverity.SESSION_SEVERITY) {
//none of the sqlstate supported by derby belongs to
//NonTransientConnectionException
ex = new SQLTransientConnectionException(message, sqlState, errCode);
} else if (sqlState.startsWith(SQLState.SQL_DATA_PREFIX)) {
ex = new SQLDataException(message, sqlState, errCode);
} else if (sqlState.startsWith(SQLState.INTEGRITY_VIOLATION_PREFIX)) {
ex = new SQLIntegrityConstraintViolationException(message, sqlState,
errCode);