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, setNextException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public 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 Throwable
public void printStackTrace(PrintWriter writer)
printStackTrace
in class Throwable
Copyright © 2012-2024 Apache Software Foundation. All Rights Reserved.