public class QueryCapacityExceededException extends QueryException
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.| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_CODE |
static int |
STATUS_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.
|
getErrorClass, getErrorCode, getHost, getMessage, resolveHostnameaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final String ERROR_CODE
public 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–2021 The Apache Software Foundation. All rights reserved.