public class QueryTimeoutException extends QueryException
TimeoutException exceptions encountered during the lifecycle of a query
are rethrown as this exception.
As a QueryException, it is expected to be serialized to a json response, but will be mapped to
STATUS_CODE instead of the default HTTP 500 status.
QueryException.FailType| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_MESSAGE |
static int |
STATUS_CODE |
BAD_QUERY_CONTEXT_ERROR_CODE, JSON_PARSE_ERROR_CODE, PLAN_VALIDATION_FAILED_ERROR_CODE, QUERY_CANCELED_ERROR_CODE, QUERY_CAPACITY_EXCEEDED_ERROR_CODE, QUERY_INTERRUPTED_ERROR_CODE, QUERY_TIMEOUT_ERROR_CODE, QUERY_UNSUPPORTED_ERROR_CODE, RESOURCE_LIMIT_EXCEEDED_ERROR_CODE, SQL_PARSE_FAILED_ERROR_CODE, SQL_QUERY_UNSUPPORTED_ERROR_CODE, TRUNCATED_RESPONSE_CONTEXT_ERROR_CODE, UNAUTHORIZED_ERROR_CODE, UNKNOWN_EXCEPTION_ERROR_CODE, UNSUPPORTED_OPERATION_ERROR_CODE| Constructor and Description |
|---|
QueryTimeoutException() |
QueryTimeoutException(String errorMessage) |
QueryTimeoutException(String errorMessage,
String host) |
QueryTimeoutException(String errorCode,
String errorMessage,
String errorClass,
String host) |
fromErrorCode, getErrorClass, getErrorCode, getFailType, getHost, getMessage, resolveHostname, sanitize, toStringaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic static final String ERROR_MESSAGE
public static final int STATUS_CODE
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.