Package com.microsoft.semantickernel.ai
Enum AIException.ErrorCodes
- java.lang.Object
-
- java.lang.Enum<AIException.ErrorCodes>
-
- com.microsoft.semantickernel.ai.AIException.ErrorCodes
-
- All Implemented Interfaces:
Serializable,Comparable<AIException.ErrorCodes>
- Enclosing class:
- AIException
public static enum AIException.ErrorCodes extends Enum<AIException.ErrorCodes>
Error codes
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AccessDeniedAccess denied.FunctionTypeNotSupportedFunction type not supported.InvalidConfigurationInvalid configuration.InvalidRequestInvalid request.InvalidResponseContentInvalid response.ModelNotAvailableModel not available.NoResponseNo response.RequestTimeoutRequest timeout.ServiceErrorService error.ThrottlingThrottling.UnknownErrorUnknown error.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()Gets the error message.static AIException.ErrorCodesvalueOf(String name)Returns the enum constant of this type with the specified name.static AIException.ErrorCodes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UnknownError
public static final AIException.ErrorCodes UnknownError
Unknown error.
-
NoResponse
public static final AIException.ErrorCodes NoResponse
No response.
-
AccessDenied
public static final AIException.ErrorCodes AccessDenied
Access denied.
-
InvalidRequest
public static final AIException.ErrorCodes InvalidRequest
Invalid request.
-
InvalidResponseContent
public static final AIException.ErrorCodes InvalidResponseContent
Invalid response.
-
Throttling
public static final AIException.ErrorCodes Throttling
Throttling.
-
RequestTimeout
public static final AIException.ErrorCodes RequestTimeout
Request timeout.
-
ServiceError
public static final AIException.ErrorCodes ServiceError
Service error.
-
ModelNotAvailable
public static final AIException.ErrorCodes ModelNotAvailable
Model not available.
-
InvalidConfiguration
public static final AIException.ErrorCodes InvalidConfiguration
Invalid configuration.
-
FunctionTypeNotSupported
public static final AIException.ErrorCodes FunctionTypeNotSupported
Function type not supported.
-
-
Method Detail
-
values
public static AIException.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 (AIException.ErrorCodes c : AIException.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 AIException.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 error message.- Returns:
- The error message.
-
-