Package org.apache.tomcat.dbcp.dbcp2
Class SQLExceptionList
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
org.apache.tomcat.dbcp.dbcp2.SQLExceptionList
- All Implemented Interfaces:
- Serializable,- Iterable<Throwable>
An 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:
- 
Constructor SummaryConstructorsConstructorDescriptionSQLExceptionList(List<? extends Throwable> causeList) Creates a new exception caused by a list of exceptions.
- 
Method SummaryMethods inherited from class java.sql.SQLExceptiongetErrorCode, getNextException, getSQLState, iterator, setNextExceptionMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Constructor Details- 
SQLExceptionListCreates a new exception caused by a list of exceptions.- Parameters:
- causeList- a list of cause exceptions.
 
 
- 
- 
Method Details- 
getCauseListGets the cause list.- Returns:
- The list of causes.
 
 
-