public class AvaticaClientRuntimeException extends RuntimeException
AvaticaRuntimeException. This exception is not intended
for consumption by clients, AvaticaSqlException serves that purpose. This exception only
exists to pass the original error attributes to a higher level of execution without modifying
existing exception-handling logic.| Modifier and Type | Field and Description |
|---|---|
private int |
errorCode |
private Service.RpcMetadataResponse |
metadata |
private static long |
serialVersionUID |
private List<String> |
serverExceptions |
private AvaticaSeverity |
severity |
private String |
sqlState |
| Constructor and Description |
|---|
AvaticaClientRuntimeException(String errorMessage,
int errorCode,
String sqlState,
AvaticaSeverity severity,
List<String> serverExceptions,
Service.RpcMetadataResponse metadata) |
AvaticaClientRuntimeException(String message,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode() |
Service.RpcMetadataResponse |
getRpcMetadata() |
List<String> |
getServerExceptions() |
AvaticaSeverity |
getSeverity() |
String |
getSqlState() |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceprivate static final long serialVersionUID
private final int errorCode
private final String sqlState
private final AvaticaSeverity severity
private final Service.RpcMetadataResponse metadata
public AvaticaClientRuntimeException(String errorMessage, int errorCode, String sqlState, AvaticaSeverity severity, List<String> serverExceptions, Service.RpcMetadataResponse metadata)
public int getErrorCode()
public String getSqlState()
public AvaticaSeverity getSeverity()
public Service.RpcMetadataResponse getRpcMetadata()
Copyright © 2012–2016 The Apache Software Foundation. All rights reserved.