public class QueryCapacityExceededException extends QueryException
QueryResource and SqlResource to surface when a query is cast away by
QueryScheduler.
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.| 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) |
| Modifier and Type | Method and Description |
|---|---|
static String |
makeLaneErrorMessage(String lane,
int capacity) |
static String |
makeTotalErrorMessage(int capacity) |
getErrorClass, getErrorCode, getHost, getMessageaddSuppressed, 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)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.