Enum ConfigurationReference.ErrorPhase
- java.lang.Object
-
- java.lang.Enum<ConfigurationReference.ErrorPhase>
-
- org.spongepowered.configurate.reference.ConfigurationReference.ErrorPhase
-
- All Implemented Interfaces:
Serializable
,Comparable<ConfigurationReference.ErrorPhase>
- Enclosing interface:
- ConfigurationReference<N extends ConfigurationNode>
public static enum ConfigurationReference.ErrorPhase extends Enum<ConfigurationReference.ErrorPhase>
Representing the phase where an error occurred.- Since:
- 4.0.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConfigurationReference.ErrorPhase
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConfigurationReference.ErrorPhase[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOADING
public static final ConfigurationReference.ErrorPhase LOADING
-
SAVING
public static final ConfigurationReference.ErrorPhase SAVING
-
UNKNOWN
public static final ConfigurationReference.ErrorPhase UNKNOWN
-
VALUE
public static final ConfigurationReference.ErrorPhase VALUE
-
-
Method Detail
-
values
public static ConfigurationReference.ErrorPhase[] 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 (ConfigurationReference.ErrorPhase c : ConfigurationReference.ErrorPhase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigurationReference.ErrorPhase valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-