Enum ConfigurationException.ErrorCodes
- java.lang.Object
-
- java.lang.Enum<ConfigurationException.ErrorCodes>
-
- com.microsoft.semantickernel.exceptions.ConfigurationException.ErrorCodes
-
- All Implemented Interfaces:
Serializable,Comparable<ConfigurationException.ErrorCodes>
- Enclosing class:
- ConfigurationException
public static enum ConfigurationException.ErrorCodes extends Enum<ConfigurationException.ErrorCodes>
ErrorCodes for this exception.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIGURATION_NOT_FOUNDCould not find configuration fileCOULD_NOT_READ_CONFIGURATIONCould not parse or load configuration fileNO_VALID_CONFIGURATIONS_FOUNDCould not find any valid configuration settingsUNKNOWN_ERRORUnknown errorVALUE_NOT_FOUNDCould not find value for configuration key
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()Gets the message for the error code.StringgetMessage(String param)Format the message with the given parameter.static ConfigurationException.ErrorCodesvalueOf(String name)Returns the enum constant of this type with the specified name.static ConfigurationException.ErrorCodes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN_ERROR
public static final ConfigurationException.ErrorCodes UNKNOWN_ERROR
Unknown error
-
CONFIGURATION_NOT_FOUND
public static final ConfigurationException.ErrorCodes CONFIGURATION_NOT_FOUND
Could not find configuration file
-
COULD_NOT_READ_CONFIGURATION
public static final ConfigurationException.ErrorCodes COULD_NOT_READ_CONFIGURATION
Could not parse or load configuration file
-
NO_VALID_CONFIGURATIONS_FOUND
public static final ConfigurationException.ErrorCodes NO_VALID_CONFIGURATIONS_FOUND
Could not find any valid configuration settings
-
VALUE_NOT_FOUND
public static final ConfigurationException.ErrorCodes VALUE_NOT_FOUND
Could not find value for configuration key
-
-
Method Detail
-
values
public static ConfigurationException.ErrorCodes[] 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 (ConfigurationException.ErrorCodes c : ConfigurationException.ErrorCodes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigurationException.ErrorCodes 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
-
getMessage
public String getMessage()
Gets the message for the error code.- Returns:
- the message for the error code
-
-