public enum QueryErrorReason extends Enum<QueryErrorReason>
Java class for QueryError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="QueryError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="PARSING_FAILED"/>
<enumeration value="MISSING_QUERY"/>
<enumeration value="MISSING_SELECT_CLAUSE"/>
<enumeration value="MISSING_FROM_CLAUSE"/>
<enumeration value="INVALID_SELECT_CLAUSE"/>
<enumeration value="INVALID_FROM_CLAUSE"/>
<enumeration value="INVALID_WHERE_CLAUSE"/>
<enumeration value="INVALID_ORDER_BY_CLAUSE"/>
<enumeration value="INVALID_LIMIT_CLAUSE"/>
<enumeration value="INVALID_START_INDEX_IN_LIMIT_CLAUSE"/>
<enumeration value="INVALID_PAGE_SIZE_IN_LIMIT_CLAUSE"/>
<enumeration value="INVALID_DURING_CLAUSE"/>
<enumeration value="INVALID_MIN_DATE_IN_DURING_CLAUSE"/>
<enumeration value="INVALID_MAX_DATE_IN_DURING_CLAUSE"/>
<enumeration value="MAX_LESS_THAN_MIN_IN_DURING_CLAUSE"/>
<enumeration value="VALIDATION_FAILED"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
INVALID_DURING_CLAUSE
The DURING clause could not be parsed.
|
INVALID_FROM_CLAUSE
The FROM clause could not be parsed.
|
INVALID_LIMIT_CLAUSE
The LIMIT clause could not be parsed.
|
INVALID_MAX_DATE_IN_DURING_CLAUSE
The maximum date in the DURING clause is not a valid date in YYYYMMDD format.
|
INVALID_MIN_DATE_IN_DURING_CLAUSE
The minimum date in the DURING clause is not a valid date in YYYYMMDD format.
|
INVALID_ORDER_BY_CLAUSE
The ORDER BY clause could not be parsed.
|
INVALID_PAGE_SIZE_IN_LIMIT_CLAUSE
The pageSize in the LIMIT clause does not contain a valid integer.
|
INVALID_SELECT_CLAUSE
The SELECT clause could not be parsed.
|
INVALID_START_INDEX_IN_LIMIT_CLAUSE
The startIndex in the LIMIT clause does not contain a valid integer.
|
INVALID_WHERE_CLAUSE
The WHERE clause could not be parsed.
|
MAX_LESS_THAN_MIN_IN_DURING_CLAUSE
The minimum date in the DURING is after the maximum date.
|
MISSING_FROM_CLAUSE
The query does not contain the required FROM clause or it is not in the correct location.
|
MISSING_QUERY
The provided query is an empty string.
|
MISSING_SELECT_CLAUSE
The query does not contain the required SELECT clause or it is not in the
correct location.
|
PARSING_FAILED
Exception that happens when trying to parse a query that doesn't match the AWQL grammar.
|
VALIDATION_FAILED
The query matched the grammar, but is invalid in some way such as using a service that
isn't supported.
|
| Modifier and Type | Method and Description |
|---|---|
static QueryErrorReason |
fromValue(String v) |
String |
value() |
static QueryErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QueryErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QueryErrorReason PARSING_FAILED
public static final QueryErrorReason MISSING_QUERY
public static final QueryErrorReason MISSING_SELECT_CLAUSE
public static final QueryErrorReason MISSING_FROM_CLAUSE
public static final QueryErrorReason INVALID_SELECT_CLAUSE
public static final QueryErrorReason INVALID_FROM_CLAUSE
public static final QueryErrorReason INVALID_WHERE_CLAUSE
public static final QueryErrorReason INVALID_ORDER_BY_CLAUSE
public static final QueryErrorReason INVALID_LIMIT_CLAUSE
public static final QueryErrorReason INVALID_START_INDEX_IN_LIMIT_CLAUSE
public static final QueryErrorReason INVALID_PAGE_SIZE_IN_LIMIT_CLAUSE
public static final QueryErrorReason INVALID_DURING_CLAUSE
public static final QueryErrorReason INVALID_MIN_DATE_IN_DURING_CLAUSE
public static final QueryErrorReason INVALID_MAX_DATE_IN_DURING_CLAUSE
public static final QueryErrorReason MAX_LESS_THAN_MIN_IN_DURING_CLAUSE
public static final QueryErrorReason VALIDATION_FAILED
public static QueryErrorReason[] values()
for (QueryErrorReason c : QueryErrorReason.values()) System.out.println(c);
public static QueryErrorReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static QueryErrorReason fromValue(String v)
Copyright © 2023. All rights reserved.