Package com.wireguard.android.backend
Enum BackendException.Reason
- java.lang.Object
-
- java.lang.Enum<BackendException.Reason>
-
- com.wireguard.android.backend.BackendException.Reason
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BackendException.Reason>
- Enclosing class:
- BackendException
public static enum BackendException.Reason extends java.lang.Enum<BackendException.Reason>
Enum class containing all known reasons for why aBackendException
might be thrown.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DNS_RESOLUTION_FAILURE
GO_ACTIVATION_ERROR_CODE
TUN_CREATION_ERROR
TUNNEL_MISSING_CONFIG
UNABLE_TO_START_VPN
UNKNOWN_KERNEL_MODULE_NAME
VPN_NOT_AUTHORIZED
WG_QUICK_CONFIG_ERROR_CODE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BackendException.Reason
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BackendException.Reason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN_KERNEL_MODULE_NAME
public static final BackendException.Reason UNKNOWN_KERNEL_MODULE_NAME
-
WG_QUICK_CONFIG_ERROR_CODE
public static final BackendException.Reason WG_QUICK_CONFIG_ERROR_CODE
-
TUNNEL_MISSING_CONFIG
public static final BackendException.Reason TUNNEL_MISSING_CONFIG
-
VPN_NOT_AUTHORIZED
public static final BackendException.Reason VPN_NOT_AUTHORIZED
-
UNABLE_TO_START_VPN
public static final BackendException.Reason UNABLE_TO_START_VPN
-
TUN_CREATION_ERROR
public static final BackendException.Reason TUN_CREATION_ERROR
-
GO_ACTIVATION_ERROR_CODE
public static final BackendException.Reason GO_ACTIVATION_ERROR_CODE
-
DNS_RESOLUTION_FAILURE
public static final BackendException.Reason DNS_RESOLUTION_FAILURE
-
-
Method Detail
-
values
public static BackendException.Reason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BackendException.Reason c : BackendException.Reason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BackendException.Reason valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-