Package org.apache.druid.query
Class QueryUnsupportedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.druid.query.QueryException
org.apache.druid.query.QueryUnsupportedException
- All Implemented Interfaces:
Serializable,SanitizableException
This exception is for the query engine to surface when a query cannot be run. This can be due to the
following reasons: 1) The query is not supported yet. 2) The query is not something Druid would ever supports.
For these cases, the exact causes and details should also be documented in Druid user facing documents.
As a QueryException it is expected to be serialized to a json response with a proper HTTP error code
(STATUS_CODE).
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.druid.query.QueryException
QueryException.FailType -
Field Summary
FieldsFields inherited from class org.apache.druid.query.QueryException
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 Summary
ConstructorsConstructorDescriptionQueryUnsupportedException(String errorMessage) QueryUnsupportedException(String errorCode, String errorMessage, String errorClass, String host) -
Method Summary
Methods inherited from class org.apache.druid.query.QueryException
fromErrorCode, getErrorClass, getErrorCode, getFailType, getHost, getMessage, resolveHostname, sanitize, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
STATUS_CODE
public static final int STATUS_CODE- See Also:
-
-
Constructor Details
-
QueryUnsupportedException
-
QueryUnsupportedException
-