Package oracle.jdbc

Interface ErrorSet


public interface ErrorSet
An immutable set of Oracle error references.
Since:
23
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ErrorSet
    The set which contains all errors
    static final ErrorSet
    The set which contains no errors
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(SQLException sqlException)
    Returns true if this set contains the error identified by the specified sqlException.
  • Field Details

    • ALL_ERRORS

      static final ErrorSet ALL_ERRORS
      The set which contains all errors
    • NO_ERRORS

      static final ErrorSet NO_ERRORS
      The set which contains no errors
  • Method Details

    • contains

      boolean contains(SQLException sqlException)
      Returns true if this set contains the error identified by the specified sqlException.
      Parameters:
      sqlException - A SQL exception which identifies an error. Not null.
      Returns:
      True if the identified error is contained in this set, otherwise false.
      Throws:
      NullPointerException - if the sqlException is null.