public static class Service.ErrorResponse extends Service.Response
Service.apply(org.apache.calcite.avatica.remote.Service.CatalogsRequest) will never return
an ErrorResponse.| Modifier and Type | Field and Description |
|---|---|
int |
errorCode |
String |
errorMessage |
List<String> |
exceptions |
static int |
MISSING_CONNECTION_ERROR_CODE |
Service.RpcMetadataResponse |
rpcMetadata |
AvaticaSeverity |
severity |
String |
sqlState |
static int |
UNKNOWN_ERROR_CODE |
static String |
UNKNOWN_SQL_STATE |
PRIME| Modifier | Constructor and Description |
|---|---|
(package private) |
Service.ErrorResponse() |
protected |
Service.ErrorResponse(Exception e,
String errorMessage,
int code,
String sqlState,
AvaticaSeverity severity,
Service.RpcMetadataResponse rpcMetadata) |
|
Service.ErrorResponse(List<String> exceptions,
String errorMessage,
int errorCode,
String sqlState,
AvaticaSeverity severity,
Service.RpcMetadataResponse rpcMetadata) |
protected |
Service.ErrorResponse(String errorMessage,
int code,
String sqlState,
AvaticaSeverity severity,
List<String> exceptions,
Service.RpcMetadataResponse rpcMetadata) |
| Modifier and Type | Method and Description |
|---|---|
(package private) Service.ErrorResponse |
deserialize(com.google.protobuf.Message genericMsg) |
boolean |
equals(Object o) |
int |
hashCode() |
(package private) Responses.ErrorResponse |
serialize() |
AvaticaClientRuntimeException |
toException() |
(package private) static List<String> |
toStackTraces(Exception e) |
String |
toString() |
(package private) static String |
toString(Exception e) |
p, p, p, ppublic static final int UNKNOWN_ERROR_CODE
public static final int MISSING_CONNECTION_ERROR_CODE
public static final String UNKNOWN_SQL_STATE
public final String errorMessage
public final int errorCode
public final String sqlState
public final AvaticaSeverity severity
public final Service.RpcMetadataResponse rpcMetadata
Service.ErrorResponse()
public Service.ErrorResponse(List<String> exceptions, String errorMessage, int errorCode, String sqlState, AvaticaSeverity severity, Service.RpcMetadataResponse rpcMetadata)
protected Service.ErrorResponse(Exception e, String errorMessage, int code, String sqlState, AvaticaSeverity severity, Service.RpcMetadataResponse rpcMetadata)
protected Service.ErrorResponse(String errorMessage, int code, String sqlState, AvaticaSeverity severity, List<String> exceptions, Service.RpcMetadataResponse rpcMetadata)
Service.ErrorResponse deserialize(com.google.protobuf.Message genericMsg)
deserialize in class Service.ResponseResponses.ErrorResponse serialize()
serialize in class Service.Responsepublic AvaticaClientRuntimeException toException()
Copyright © 2012–2016 The Apache Software Foundation. All rights reserved.