Class SQLRuntimeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.gvsig.fmap.dal.store.jdbc.exception.SQLRuntimeException
All Implemented Interfaces:
Serializable, Iterable<Throwable>

public class SQLRuntimeException extends RuntimeException implements Iterable<Throwable>
Author:
jjdelcerro
See Also:
  • Constructor Details

  • Method Details

    • getSQLState

      public String getSQLState()
      Retrieves the SQLState for this SQLException object.
      Returns:
      the SQLState value
    • getErrorCode

      public int getErrorCode()
      Retrieves the vendor-specific exception code for this SQLException object.
      Returns:
      the vendor's error code
    • getNextException

      public SQLException getNextException()
      Retrieves the exception chained to this SQLException object by setNextException(SQLException ex).
      Returns:
      the next SQLException object in the chain; null if there are none
      See Also:
    • setNextException

      public void setNextException(SQLException ex)
      Adds an SQLException object to the end of the chain.
      Parameters:
      ex - the new exception that will be added to the end of the SQLException chain
      See Also:
    • iterator

      public Iterator<Throwable> iterator()
      Returns an iterator over the chained SQLExceptions. The iterator will be used to iterate over each SQLException and its underlying cause (if any).
      Specified by:
      iterator in interface Iterable<Throwable>
      Returns:
      an iterator over the chained SQLExceptions and causes in the proper order
      Since:
      1.6
    • isTableOrViewNotFound

      public boolean isTableOrViewNotFound()