Package com.wireguard.config
Enum BadConfigException.Reason
- java.lang.Object
-
- java.lang.Enum<BadConfigException.Reason>
-
- com.wireguard.config.BadConfigException.Reason
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BadConfigException.Reason>
- Enclosing class:
- BadConfigException
public static enum BadConfigException.Reason extends java.lang.Enum<BadConfigException.Reason>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_KEY
INVALID_NUMBER
INVALID_VALUE
MISSING_ATTRIBUTE
MISSING_SECTION
SYNTAX_ERROR
UNKNOWN_ATTRIBUTE
UNKNOWN_SECTION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BadConfigException.Reason
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BadConfigException.Reason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INVALID_KEY
public static final BadConfigException.Reason INVALID_KEY
-
INVALID_NUMBER
public static final BadConfigException.Reason INVALID_NUMBER
-
INVALID_VALUE
public static final BadConfigException.Reason INVALID_VALUE
-
MISSING_ATTRIBUTE
public static final BadConfigException.Reason MISSING_ATTRIBUTE
-
MISSING_SECTION
public static final BadConfigException.Reason MISSING_SECTION
-
SYNTAX_ERROR
public static final BadConfigException.Reason SYNTAX_ERROR
-
UNKNOWN_ATTRIBUTE
public static final BadConfigException.Reason UNKNOWN_ATTRIBUTE
-
UNKNOWN_SECTION
public static final BadConfigException.Reason UNKNOWN_SECTION
-
-
Method Detail
-
values
public static BadConfigException.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 (BadConfigException.Reason c : BadConfigException.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 BadConfigException.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
-
-