public class QueryCapacityExceededException extends QueryException
As a QueryException it is expected to be serialied 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 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 |
|---|
QueryCapacityExceededException(int capacity) |
QueryCapacityExceededException(String lane,
int capacity) |
QueryCapacityExceededException(String errorCode,
String errorMessage,
String errorClass,
String host) |
| Modifier and Type | Method and Description |
|---|---|
static String |
makeLaneErrorMessage(String lane,
int capacity) |
static String |
makeTotalErrorMessage(int capacity) |
static QueryCapacityExceededException |
withErrorMessageAndResolvedHost(String errorMessage)
This method sets hostName unlike constructors because this can be called in historicals
while those constructors are only used in brokers.
|
fromErrorCode, getErrorClass, getErrorCode, getFailType, getHost, getMessage, resolveHostname, sanitize, toStringaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic static final int STATUS_CODE
public QueryCapacityExceededException(int capacity)
public QueryCapacityExceededException(String lane, int capacity)
public static QueryCapacityExceededException withErrorMessageAndResolvedHost(String errorMessage)
public static String makeTotalErrorMessage(int capacity)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.