Package com.wireguard.android.util
Enum RootShell.RootShellException.Reason
- java.lang.Object
-
- java.lang.Enum<RootShell.RootShellException.Reason>
-
- com.wireguard.android.util.RootShell.RootShellException.Reason
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RootShell.RootShellException.Reason>
- Enclosing class:
- RootShell.RootShellException
public static enum RootShell.RootShellException.Reason extends java.lang.Enum<RootShell.RootShellException.Reason>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATE_BIN_DIR_ERROR
CREATE_TEMP_DIR_ERROR
NO_ROOT_ACCESS
SHELL_EXIT_STATUS_READ_ERROR
SHELL_MARKER_COUNT_ERROR
SHELL_START_ERROR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RootShell.RootShellException.Reason
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RootShell.RootShellException.Reason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_ROOT_ACCESS
public static final RootShell.RootShellException.Reason NO_ROOT_ACCESS
-
SHELL_MARKER_COUNT_ERROR
public static final RootShell.RootShellException.Reason SHELL_MARKER_COUNT_ERROR
-
SHELL_EXIT_STATUS_READ_ERROR
public static final RootShell.RootShellException.Reason SHELL_EXIT_STATUS_READ_ERROR
-
SHELL_START_ERROR
public static final RootShell.RootShellException.Reason SHELL_START_ERROR
-
CREATE_BIN_DIR_ERROR
public static final RootShell.RootShellException.Reason CREATE_BIN_DIR_ERROR
-
CREATE_TEMP_DIR_ERROR
public static final RootShell.RootShellException.Reason CREATE_TEMP_DIR_ERROR
-
-
Method Detail
-
values
public static RootShell.RootShellException.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 (RootShell.RootShellException.Reason c : RootShell.RootShellException.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 RootShell.RootShellException.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
-
-