Package org.apache.druid.query
Class ResourceLimitExceededException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.druid.query.QueryException
-
- org.apache.druid.query.BadQueryException
-
- org.apache.druid.query.ResourceLimitExceededException
-
- All Implemented Interfaces:
Serializable,SanitizableException
public class ResourceLimitExceededException extends BadQueryException
Exception indicating that an operation failed because it exceeded some configured resource limit.This is a
BadQueryExceptionbecause it likely indicates a user's misbehavior when this exception is thrown. The resource limitations set by Druid cluster operators are typically less flexible than the parameters of a user query, so when a user query requires too many resources, the likely remedy is that the user query should be modified to use fewer resources, or to reduce query volume.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.druid.query.QueryException
QueryException.FailType
-
-
Field Summary
-
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 ResourceLimitExceededException(String message)ResourceLimitExceededException(String errorCode, String message, String errorClass, String host)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResourceLimitExceededExceptionwithMessage(String message, Object... arguments)-
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
-
-
-
-
Method Detail
-
withMessage
public static ResourceLimitExceededException withMessage(String message, Object... arguments)
-
-