Package com.sap.ai.sdk.orchestration
Class OrchestrationClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sap.ai.sdk.core.common.ClientException
com.sap.ai.sdk.orchestration.OrchestrationClientException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
OrchestrationFilterException
Exception thrown by the
OrchestrationClient in case of an error.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOrchestrationClientException(String message) OrchestrationClientException(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionWraps a structured error payload received from the remote service, if available.Retrieves theErrorResponsefrom the orchestration service, if available.Retrieves theErrorResponseStreamingfrom the orchestration service, if available.Retrieves the HTTP status code from the original error response, if available.Methods inherited from class com.sap.ai.sdk.core.common.ClientException
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
-
OrchestrationClientException
public OrchestrationClientException() -
OrchestrationClientException
-
OrchestrationClientException
-
OrchestrationClientException
-
-
Method Details
-
getClientError
Description copied from class:ClientExceptionWraps a structured error payload received from the remote service, if available. This can be used to extract more detailed error information.- Overrides:
getClientErrorin classClientException
-
getErrorResponse
Retrieves theErrorResponsefrom the orchestration service, if available.- Returns:
- The
ErrorResponseobject, ornullif not available. - Since:
- 1.10.0
-
getErrorResponseStreaming
Retrieves theErrorResponseStreamingfrom the orchestration service, if available.- Returns:
- The
ErrorResponseStreamingobject, ornullif not available. - Since:
- 1.10.0
-
getStatusCode
Retrieves the HTTP status code from the original error response, if available.- Returns:
- the HTTP status code, or
nullif not available - Since:
- 1.10.0
-