Class OpenAiApiClientErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.ai.openai.api.common.OpenAiApiClientErrorException
- All Implemented Interfaces:
Serializable
Thrown on 4xx client errors, such as 401 - Incorrect API key provided, 401 - You must
be a member of an organization to use the API, 429 - Rate limit reached for requests,
429 - You exceeded your current quota , please check your plan and billing details.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOpenAiApiClientErrorException
(String message) OpenAiApiClientErrorException
(String message, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OpenAiApiClientErrorException
-
OpenAiApiClientErrorException
-