public enum TimeZoneErrorReason extends Enum<TimeZoneErrorReason>
Java class for TimeZoneError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="TimeZoneError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="INVALID_TIMEZONE_ID"/>
<enumeration value="TIMEZONE_ID_IN_WRONG_FORMAT"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
INVALID_TIMEZONE_ID
Indicates that the timezone ID provided is not supported.
|
TIMEZONE_ID_IN_WRONG_FORMAT
Indicates that the timezone ID provided is in the wrong format.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static TimeZoneErrorReason |
fromValue(String v) |
String |
value() |
static TimeZoneErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeZoneErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeZoneErrorReason INVALID_TIMEZONE_ID
public static final TimeZoneErrorReason TIMEZONE_ID_IN_WRONG_FORMAT
public static final TimeZoneErrorReason UNKNOWN
public static TimeZoneErrorReason[] values()
for (TimeZoneErrorReason c : TimeZoneErrorReason.values()) System.out.println(c);
public static TimeZoneErrorReason 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 TimeZoneErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.