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 |
UNAUTHORIZED_ERROR_CODE |
static String |
UNAUTHORIZED_SQL_STATE |
static int |
UNKNOWN_ERROR_CODE |
static String |
UNKNOWN_SQL_STATE |
Modifier | Constructor and Description |
---|---|
protected |
ErrorResponse(Exception e,
String errorMessage,
int code,
String sqlState,
AvaticaSeverity severity,
Service.RpcMetadataResponse rpcMetadata) |
|
ErrorResponse(List<String> exceptions,
String errorMessage,
int errorCode,
String sqlState,
AvaticaSeverity severity,
Service.RpcMetadataResponse rpcMetadata) |
protected |
ErrorResponse(String errorMessage,
int code,
String sqlState,
AvaticaSeverity severity,
List<String> exceptions,
Service.RpcMetadataResponse rpcMetadata) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
org.apache.calcite.avatica.proto.Responses.ErrorResponse |
serialize() |
AvaticaClientRuntimeException |
toException() |
String |
toString() |
p, p, p, p
public static final int UNKNOWN_ERROR_CODE
public static final int MISSING_CONNECTION_ERROR_CODE
public static final int UNAUTHORIZED_ERROR_CODE
public static final String UNKNOWN_SQL_STATE
public static final String UNAUTHORIZED_SQL_STATE
public final String errorMessage
public final int errorCode
public final String sqlState
public final AvaticaSeverity severity
public final Service.RpcMetadataResponse rpcMetadata
public ErrorResponse(List<String> exceptions, String errorMessage, int errorCode, String sqlState, AvaticaSeverity severity, Service.RpcMetadataResponse rpcMetadata)
protected ErrorResponse(Exception e, String errorMessage, int code, String sqlState, AvaticaSeverity severity, Service.RpcMetadataResponse rpcMetadata)
protected ErrorResponse(String errorMessage, int code, String sqlState, AvaticaSeverity severity, List<String> exceptions, Service.RpcMetadataResponse rpcMetadata)
public org.apache.calcite.avatica.proto.Responses.ErrorResponse serialize()
public AvaticaClientRuntimeException toException()
Copyright © 2012-2024 Apache Software Foundation. All Rights Reserved.