Package org.apache.druid.query
Enum QueryException.FailType
- java.lang.Object
-
- java.lang.Enum<QueryException.FailType>
-
- org.apache.druid.query.QueryException.FailType
-
- All Implemented Interfaces:
Serializable
,Comparable<QueryException.FailType>
- Enclosing class:
- QueryException
public static enum QueryException.FailType extends Enum<QueryException.FailType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELED
CAPACITY_EXCEEDED
QUERY_RUNTIME_FAILURE
TIMEOUT
UNAUTHORIZED
UNKNOWN
UNSUPPORTED
USER_ERROR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getExpectedStatus()
static QueryException.FailType
valueOf(String name)
Returns the enum constant of this type with the specified name.static QueryException.FailType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USER_ERROR
public static final QueryException.FailType USER_ERROR
-
UNAUTHORIZED
public static final QueryException.FailType UNAUTHORIZED
-
CAPACITY_EXCEEDED
public static final QueryException.FailType CAPACITY_EXCEEDED
-
UNKNOWN
public static final QueryException.FailType UNKNOWN
-
CANCELED
public static final QueryException.FailType CANCELED
-
QUERY_RUNTIME_FAILURE
public static final QueryException.FailType QUERY_RUNTIME_FAILURE
-
UNSUPPORTED
public static final QueryException.FailType UNSUPPORTED
-
TIMEOUT
public static final QueryException.FailType TIMEOUT
-
-
Method Detail
-
values
public static QueryException.FailType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (QueryException.FailType c : QueryException.FailType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QueryException.FailType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getExpectedStatus
public int getExpectedStatus()
-
-