public enum CommonErrorReason extends Enum<CommonErrorReason>
Java class for CommonError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="CommonError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="NOT_FOUND"/>
<enumeration value="ALREADY_EXISTS"/>
<enumeration value="NOT_APPLICABLE"/>
<enumeration value="DUPLICATE_OBJECT"/>
<enumeration value="CANNOT_UPDATE"/>
<enumeration value="CONCURRENT_MODIFICATION"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
ALREADY_EXISTS
Indicates that an attempt was made to create an entity that already
exists.
|
CANNOT_UPDATE
Indicates that an attempt was made to change an immutable field.
|
CONCURRENT_MODIFICATION
Indicates that another request attempted to update the same data in the same network
at about the same time.
|
DUPLICATE_OBJECT
Indicates that two elements in the collection were identical.
|
NOT_APPLICABLE
Indicates that a value is not applicable for given use case.
|
NOT_FOUND
Indicates that an attempt was made to retrieve an entity that does not
exist.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static CommonErrorReason |
fromValue(String v) |
String |
value() |
static CommonErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommonErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommonErrorReason NOT_FOUND
public static final CommonErrorReason ALREADY_EXISTS
public static final CommonErrorReason NOT_APPLICABLE
public static final CommonErrorReason DUPLICATE_OBJECT
public static final CommonErrorReason CANNOT_UPDATE
public static final CommonErrorReason CONCURRENT_MODIFICATION
public static final CommonErrorReason UNKNOWN
public static CommonErrorReason[] values()
for (CommonErrorReason c : CommonErrorReason.values()) System.out.println(c);
public static CommonErrorReason 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 CommonErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.