public enum InternalApiErrorReason extends Enum<InternalApiErrorReason>
Java class for InternalApiError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="InternalApiError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="UNEXPECTED_INTERNAL_API_ERROR"/>
<enumeration value="TRANSIENT_ERROR"/>
<enumeration value="UNKNOWN"/>
<enumeration value="DOWNTIME"/>
<enumeration value="ERROR_GENERATING_RESPONSE"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
DOWNTIME
The API is currently unavailable for a planned downtime.
|
ERROR_GENERATING_RESPONSE
Mutate succeeded but server was unable to build response.
|
TRANSIENT_ERROR
A temporary error occurred during the request.
|
UNEXPECTED_INTERNAL_API_ERROR
API encountered an unexpected internal error.
|
UNKNOWN
The cause of the error is not known or only defined in newer versions.
|
| Modifier and Type | Method and Description |
|---|---|
static InternalApiErrorReason |
fromValue(String v) |
String |
value() |
static InternalApiErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InternalApiErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InternalApiErrorReason UNEXPECTED_INTERNAL_API_ERROR
public static final InternalApiErrorReason TRANSIENT_ERROR
public static final InternalApiErrorReason UNKNOWN
public static final InternalApiErrorReason DOWNTIME
public static final InternalApiErrorReason ERROR_GENERATING_RESPONSE
public static InternalApiErrorReason[] values()
for (InternalApiErrorReason c : InternalApiErrorReason.values()) System.out.println(c);
public static InternalApiErrorReason 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 InternalApiErrorReason fromValue(String v)
Copyright © 2023. All rights reserved.