public class AvaticaSqlException extends SQLException
SQLException which encapsulates errors from the remote Avatica server.| Constructor and Description |
|---|
AvaticaSqlException(String errorMessage,
String sqlState,
int errorCode,
List<String> stackTraces,
String remoteServer)
Construct the Exception with information from the server.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorMessage() |
String |
getRemoteServer() |
List<String> |
getStackTraces() |
void |
printStackTrace(PrintStream stream) |
void |
printStackTrace(PrintWriter writer) |
getErrorCode, getNextException, getSQLState, iterator, setNextExceptionaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic AvaticaSqlException(String errorMessage, String sqlState, int errorCode, List<String> stackTraces, String remoteServer)
errorMessage - A human-readable error message.errorCode - An integer corresponding to a known error.stackTraces - Server-side stacktrace.remoteServer - The host:port where the Avatica server is locatedpublic String getErrorMessage()
public List<String> getStackTraces()
public String getRemoteServer()
public void printStackTrace(PrintStream stream)
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter writer)
printStackTrace in class ThrowableCopyright © 2012-2025 Apache Software Foundation. All Rights Reserved.