/** * Handle any {@link SQLWarning}s on the current {@link Connection}. * Chain throwed SQLWarnings to SQLException. * @see #handleSQLWarning(SQLWarning) */ private void handleSQLErrors(SQLException err) throws SQLException { if (_warningAction == WARN_IGNORE) return; try { handleSQLWarning(getWarnings()); } catch (SQLException warning) { if (err != null) err.setNextException(warning); else throw warning; } finally { clearWarnings(); } }
/** * Handle any {@link SQLWarning}s on the current {@link Connection}. * Chain throwed SQLWarnings to SQLException. * @see #handleSQLWarning(SQLWarning) */ private void handleSQLErrors(SQLException err) throws SQLException { if (_warningAction == WARN_IGNORE) return; try { handleSQLWarning(getWarnings()); } catch (SQLException warning) { if (err != null) err.setNextException(warning); else throw warning; } finally { clearWarnings(); } }
/** * Handle any {@link SQLWarning}s on the current {@link Connection}. * Chain throwed SQLWarnings to SQLException. * @see #handleSQLWarning(SQLWarning) */ private void handleSQLErrors(SQLException err) throws SQLException { if (_warningAction == WARN_IGNORE) return; try { handleSQLWarning(getWarnings()); } catch (SQLException warning) { if (err != null) err.setNextException(warning); else throw warning; } finally { clearWarnings(); } }
/** * Handle any {@link SQLWarning}s on the current {@link Connection}. * * @see #handleSQLWarning(SQLWarning) */ private void handleSQLWarning() throws SQLException { if (_warningAction == WARN_IGNORE) return; try { handleSQLWarning(getWarnings()); } finally { clearWarnings(); } }