Class ContextualSQLException

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<java.lang.Throwable>

    @API(EXPERIMENTAL)
    public class ContextualSQLException
    extends java.sql.SQLException
    An exception intended to carry over additional context within a SQLException.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> getContext()  
      • Methods inherited from class java.sql.SQLException

        getErrorCode, getNextException, getSQLState, iterator, setNextException
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • ContextualSQLException

        public ContextualSQLException​(java.lang.String reason,
                                      java.lang.String SQLState,
                                      int vendorCode)
      • ContextualSQLException

        public ContextualSQLException​(java.lang.String reason,
                                      java.lang.String SQLState)
      • ContextualSQLException

        public ContextualSQLException​(java.lang.String reason)
      • ContextualSQLException

        public ContextualSQLException()
      • ContextualSQLException

        public ContextualSQLException​(java.lang.Throwable cause)
      • ContextualSQLException

        public ContextualSQLException​(java.lang.String reason,
                                      java.lang.Throwable cause)
      • ContextualSQLException

        public ContextualSQLException​(java.lang.String reason,
                                      java.lang.String sqlState,
                                      java.lang.Throwable cause,
                                      @Nullable
                                      java.util.Map<java.lang.String,​java.lang.Object> extraContext)
      • ContextualSQLException

        public ContextualSQLException​(java.lang.String reason,
                                      java.lang.String sqlState,
                                      int vendorCode,
                                      java.lang.Throwable cause)
    • Method Detail

      • getContext

        public java.util.Map<java.lang.String,​java.lang.Object> getContext()