ex = new SQLTransactionRollbackException(message, sqlState,
severity, t);
} else if (sqlState.startsWith(SQLState.LSE_COMPILATION_PREFIX)) {
ex = new SQLSyntaxErrorException(message, sqlState, severity, t);
} else if (sqlState.startsWith(SQLState.UNSUPPORTED_PREFIX)) {
ex = new SQLFeatureNotSupportedException(message, sqlState, severity, t);
} else {
ex = new SQLException(message, sqlState, severity, t);
}
if (next != null) {