Class OpenAiResponsesException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.ai.openai.responses.OpenAiResponsesException
- All Implemented Interfaces:
Serializable
Thrown when the Responses API reports a failed response, or emits an
error
event mid-stream. Unlike a transport failure, this means the request reached the model
and the model run itself did not complete.- Since:
- 2.1.0
- Author:
- Dimitar Proynov
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OpenAiResponsesException
-
-
Method Details
-
getCode
Return the OpenAI error code, ornullif the error carried none.
-