Beispiel #1
0
            public java.lang.Throwable next()
            {
                if (null == current)
                {
                    throw new java.util.NoSuchElementException();
                }
                SQLException ret = current;

                current = current.next;
                return(ret);
            }
Beispiel #2
0
 /**
  * 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;
     }
 }
Beispiel #3
0
        /*
         * 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$
        }
Beispiel #4
0
 internal InternalIterator(SQLException e)
 {
     current = e;
 }