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 ACCESS_DENIEDAccess denied.FUNCTION_TYPE_NOT_SUPPORTEDFunction type not supported.INVALID_CONFIGURATIONInvalid configuration.INVALID_REQUESTInvalid request.INVALID_RESPONSE_CONTENTInvalid response.MODEL_NOT_AVAILABLEModel not available.NO_RESPONSENo response.REQUEST_TIMEOUTRequest timeout.SERVICE_ERRORService error.THROTTLINGThrottling.UNKNOWN_ERRORUnknown 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
-
UNKNOWN_ERROR
public static final AIException.ErrorCodes UNKNOWN_ERROR
Unknown error.
-
NO_RESPONSE
public static final AIException.ErrorCodes NO_RESPONSE
No response.
-
ACCESS_DENIED
public static final AIException.ErrorCodes ACCESS_DENIED
Access denied.
-
INVALID_REQUEST
public static final AIException.ErrorCodes INVALID_REQUEST
Invalid request.
-
INVALID_RESPONSE_CONTENT
public static final AIException.ErrorCodes INVALID_RESPONSE_CONTENT
Invalid response.
-
THROTTLING
public static final AIException.ErrorCodes THROTTLING
Throttling.
-
REQUEST_TIMEOUT
public static final AIException.ErrorCodes REQUEST_TIMEOUT
Request timeout.
-
SERVICE_ERROR
public static final AIException.ErrorCodes SERVICE_ERROR
Service error.
-
MODEL_NOT_AVAILABLE
public static final AIException.ErrorCodes MODEL_NOT_AVAILABLE
Model not available.
-
INVALID_CONFIGURATION
public static final AIException.ErrorCodes INVALID_CONFIGURATION
Invalid configuration.
-
FUNCTION_TYPE_NOT_SUPPORTED
public static final AIException.ErrorCodes FUNCTION_TYPE_NOT_SUPPORTED
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.
-
-