Class SQLExceptionList

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

    public class SQLExceptionList
    extends java.sql.SQLException
    A SQLException based on a list of Throwable causes.

    The first exception in the list is used as this exception's cause and is accessible with the usual Throwable.getCause() while the complete list is accessible with getCauseList().

    Since:
    2.7.0
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<? extends java.lang.Throwable> causeList  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      SQLExceptionList​(java.util.List<? extends java.lang.Throwable> causeList)
      Creates a new exception caused by a list of exceptions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<? extends java.lang.Throwable> getCauseList()  
      • 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
    • Field Detail

      • causeList

        private final java.util.List<? extends java.lang.Throwable> causeList
    • Constructor Detail

      • SQLExceptionList

        public SQLExceptionList​(java.util.List<? extends java.lang.Throwable> causeList)
        Creates a new exception caused by a list of exceptions.
        Parameters:
        causeList - a list of cause exceptions.
    • Method Detail

      • getCauseList

        public java.util.List<? extends java.lang.Throwable> getCauseList()