public enum ListErrorReason extends Enum<ListErrorReason>
Java class for ListError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="ListError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="CLEAR_UNSUPPORTED"/>
<enumeration value="INVALID_OPERATOR"/>
<enumeration value="INVALID_ELEMENT"/>
<enumeration value="LIST_LENGTH_MISMATCH"/>
<enumeration value="DUPLICATE_ELEMENT"/>
<enumeration value="MUTATE_UNSUPPORTED"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CLEAR_UNSUPPORTED
A request attempted to clear a list that does not support being cleared.
|
DUPLICATE_ELEMENT
Duplicate elements inside list.
|
INVALID_ELEMENT
An UPDATE or REMOVE was requested for a list element that does not exist.
|
INVALID_OPERATOR
The operator is invalid for the list or list element the operator was applied to.
|
LIST_LENGTH_MISMATCH
The operator list has different a size compared to the element list.
|
MUTATE_UNSUPPORTED
The API operator of the mutate being performed on the entity containing this list is not
supported.
|
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static ListErrorReason |
fromValue(String v) |
String |
value() |
static ListErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ListErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ListErrorReason CLEAR_UNSUPPORTED
public static final ListErrorReason INVALID_OPERATOR
public static final ListErrorReason INVALID_ELEMENT
public static final ListErrorReason LIST_LENGTH_MISMATCH
public static final ListErrorReason DUPLICATE_ELEMENT
public static final ListErrorReason MUTATE_UNSUPPORTED
public static final ListErrorReason UNKNOWN
public static ListErrorReason[] values()
for (ListErrorReason c : ListErrorReason.values()) System.out.println(c);
public static ListErrorReason 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 ListErrorReason fromValue(String v)
Copyright © 2023. All rights reserved.