Package com.tnsai.exceptions
Enum Class LLMException.ErrorType
- All Implemented Interfaces:
Serializable,Comparable<LLMException.ErrorType>,Constable
- Enclosing class:
LLMException
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInvalid API key or authentication failureModel does not support a required capabilityContent policy violationContext length exceededInvalid request formatMalformed tool call from model (bad JSON, missing fields)Model not found or unavailableModel overloaded, try againGeneric server errorUnknown error -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic LLMException.ErrorTypeReturns the enum constant of this class with the specified name.static LLMException.ErrorType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
MODEL_NOT_FOUND
Model not found or unavailable -
AUTHENTICATION_FAILED
Invalid API key or authentication failure -
CONTENT_FILTERED
Content policy violation -
INVALID_REQUEST
Invalid request format -
MODEL_OVERLOADED
Model overloaded, try again -
CONTEXT_TOO_LONG
Context length exceeded -
SERVER_ERROR
Generic server error -
MALFORMED_TOOL_CALL
Malformed tool call from model (bad JSON, missing fields) -
CAPABILITY_MISMATCH
Model does not support a required capability -
UNKNOWN
Unknown error
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isRetryable
public boolean isRetryable()
-