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() | 
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 SQLExceptionChainBuilderCopyright © 2001-2024 Jaybird (Firebird JDBC) team. All rights reserved.