Class OpenAiError
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.OpenAiError
- All Implemented Interfaces:
ClientError
Represents an error response from the OpenAI API.
- Since:
- 1.4.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOpenAiError(ErrorResponse errorResponse) Creates a newOpenAiErrorinstance. -
Method Summary
-
Constructor Details
-
OpenAiError
Creates a newOpenAiErrorinstance.- Parameters:
errorResponse- The original error response from the OpenAI API.
-
-
Method Details
-
getMessage
Gets the error message from the contained original response.- Specified by:
getMessagein interfaceClientError- Returns:
- the error message
-
getErrorResponse
The original error response from the OpenAI API. -
equals
-
hashCode
public int hashCode() -
toString
-