Class OpenAiClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sap.ai.sdk.core.common.ClientException
com.sap.ai.sdk.foundationmodels.openai.OpenAiClientException
- All Implemented Interfaces:
Serializable
Generic exception for errors occurring when using OpenAI foundation models.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOpenAiClientException(String message) OpenAiClientException(String message, Throwable cause) OpenAiClientException(Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves theErrorResponsefrom the OpenAI service, if available.Methods inherited from class com.sap.ai.sdk.core.common.ClientException
getClientError, getHttpRequest, getHttpResponse, setClientError, setHttpRequest, setHttpResponseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OpenAiClientException
public OpenAiClientException() -
OpenAiClientException
-
OpenAiClientException
-
OpenAiClientException
-
-
Method Details
-
getErrorResponse
Retrieves theErrorResponsefrom the OpenAI service, if available.- Returns:
- The
ErrorResponseobject, ornullif not available.
-