E - Type of SQLException (definition: E extends SQLException)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> |
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 boolean hasException()
true if this SQLExceptionChainBuilder contains at least one SQLException.public E getException()
null if no SQLException was added to this SQLExceptionChainBuilderCopyright © 2001-2020 Jaybird (Firebird JDBC/JCA) team. All rights reserved.