public enum NetworkErrorReason extends Enum<NetworkErrorReason>
Java class for NetworkError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="NetworkError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="UNKNOWN"/>
<enumeration value="MULTI_CURRENCY_NOT_SUPPORTED"/>
<enumeration value="UNSUPPORTED_CURRENCY"/>
<enumeration value="NETWORK_CURRENCY_CANNOT_BE_SAME_AS_SECONDARY"/>
<enumeration value="CANNOT_DELETE_CURRENCY_WITH_ACTIVE_RATE_CARDS"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CANNOT_DELETE_CURRENCY_WITH_ACTIVE_RATE_CARDS
The currency cannot be deleted as it is still being used by active rate cards.
|
MULTI_CURRENCY_NOT_SUPPORTED
Multi-currency support is not enabled for this network.
|
NETWORK_CURRENCY_CANNOT_BE_SAME_AS_SECONDARY
The network currency cannot also be specified as a secondary currency.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
UNSUPPORTED_CURRENCY
Currency provided is not supported.
|
| Modifier and Type | Method and Description |
|---|---|
static NetworkErrorReason |
fromValue(String v) |
String |
value() |
static NetworkErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NetworkErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkErrorReason UNKNOWN
public static final NetworkErrorReason MULTI_CURRENCY_NOT_SUPPORTED
public static final NetworkErrorReason UNSUPPORTED_CURRENCY
public static final NetworkErrorReason NETWORK_CURRENCY_CANNOT_BE_SAME_AS_SECONDARY
public static final NetworkErrorReason CANNOT_DELETE_CURRENCY_WITH_ACTIVE_RATE_CARDS
public static NetworkErrorReason[] values()
for (NetworkErrorReason c : NetworkErrorReason.values()) System.out.println(c);
public static NetworkErrorReason 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 NetworkErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.