public java.lang.Throwable next() { if (null == current) { throw new java.util.NoSuchElementException(); } SQLException ret = current; current = current.next; return(ret); }
/** * Adds the SQLException to the end of this {@code SQLException} chain. * * @param ex * the new {@code SQLException} to be added to the end of the * chain. */ public void setNextException(SQLException ex) { if (next != null) { next.setNextException(ex); } else { next = ex; } }
/* * Gets the next {@code SQLWarning} chained to this {@code SQLWarning} object. * * @return the {@code SQLWarning} chained to this {@code SQLWarning}. * {@code null} if no {@code SQLWarning} is chained to this {@code * SQLWarning}. */ public SQLWarning getNextWarning() { SQLException next = base.getNextException(); if (next == null) { return(null); } if (next is SQLWarning) { return((SQLWarning)next); } throw new java.lang.Error("SQLWarning chain holds value that is not a SQLWarning"); //$NON-NLS-1$ }
internal InternalIterator(SQLException e) { current = e; }