Package com.sap.ai.sdk.orchestration
Class OrchestrationFilterException
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
com.sap.ai.sdk.orchestration.OrchestrationFilterException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
OrchestrationFilterException.Input,OrchestrationFilterException.Output
Base exception for errors occurring during orchestration filtering.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classException thrown when an error occurs during input filtering.static classException thrown when an error occurs during output filtering, specifically when the finish reason is a content filter. -
Field Summary
FieldsModifier and TypeFieldDescriptionDetails about the filters that caused the exception. -
Method Summary
Modifier and TypeMethodDescriptionDetails about the filters that caused the exception.Retrieves LlamaGuard 3.8b details fromfilterDetails, if present.Methods inherited from class com.sap.ai.sdk.orchestration.OrchestrationClientException
getClientError, getErrorResponse, getErrorResponseStreaming, getStatusCodeMethods 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
-
Field Details
-
filterDetails
Details about the filters that caused the exception.
-
-
Method Details
-
getLlamaGuard38b
Retrieves LlamaGuard 3.8b details fromfilterDetails, if present.- Returns:
- The LlamaGuard38b object, or
nullif not found or conversion fails. - Throws:
IllegalArgumentException- if the conversion of filter details toLlamaGuard38bfails due to invalid content.
-
getFilterDetails
Details about the filters that caused the exception.
-