Package org.apache.druid.query
Class QueryTimeoutException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.druid.query.QueryException
-
- org.apache.druid.query.QueryTimeoutException
-
- All Implemented Interfaces:
Serializable
,SanitizableException
public class QueryTimeoutException extends QueryException
This exception is thrown when a query does not finish before the configured query timeout.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 toSTATUS_CODE
instead of the default HTTP 500 status.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.druid.query.QueryException
QueryException.FailType
-
-
Field Summary
Fields Modifier and Type Field Description static String
ERROR_MESSAGE
static int
STATUS_CODE
-
Fields 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
Constructors Constructor Description QueryTimeoutException()
QueryTimeoutException(String errorMessage)
QueryTimeoutException(String errorMessage, String host)
QueryTimeoutException(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, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Field Detail
-
ERROR_MESSAGE
public static final String ERROR_MESSAGE
- See Also:
- Constant Field Values
-
STATUS_CODE
public static final int STATUS_CODE
- See Also:
- Constant Field Values
-
-