E - type of SQLException (definition: E extends SQLException)@InternalApi public final class SQLExceptionChainBuilder<E extends java.sql.SQLException> extends java.lang.Object
SQLException chains.
 NOTE: This class is not thread-safe; an instance should only be used on a single thread or with proper external synchronisation.
| Constructor and Description | 
|---|
| SQLExceptionChainBuilder()Create SQLExceptionChainBuilder | 
| SQLExceptionChainBuilder(E root)Create SQLExceptionChainBuilder with the specified root exception. | 
| Modifier and Type | Method and Description | 
|---|---|
| SQLExceptionChainBuilder<E> | addFirst(E sqle)Adds the passed SQLException as the first exception in the chain. | 
| SQLExceptionChainBuilder<E> | append(E sqle)Appends the passed SQLException to the exception chain. | 
| E | getException() | 
| boolean | hasException() | 
| java.util.Optional<java.sql.SQLException> | optException() | 
| void | throwIfPresent()Throws the root SQLException stored in the chain, if present; otherwise does nothing. | 
public SQLExceptionChainBuilder()
public SQLExceptionChainBuilder(E root)
root - root SQLExceptionpublic SQLExceptionChainBuilder<E> append(E sqle)
 If this SQLExceptionChainBuilder does not have a root, sqle will be come the root.
 
sqle - SQLException to add to the chain.public SQLExceptionChainBuilder<E> addFirst(E sqle)
 If this SQLExceptionChainBuilder already has a root, that root will be chained to sqle, and sqle
 becomes the new root.
 
sqle - SQLException to add to the chainpublic boolean hasException()
true if this SQLExceptionChainBuilder contains at least one SQLException.public E getException()
null if no SQLException was added to this SQLExceptionChainBuilderpublic java.util.Optional<java.sql.SQLException> optException()
public void throwIfPresent()
                    throws java.sql.SQLException
java.sql.SQLException - the root SQLException in this chain builderCopyright © 2001-2025 Jaybird (Firebird JDBC) team. All rights reserved.