Class ResponseRefusedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.xima.fc.prompt.service.PromptExecutionException
de.xima.fc.prompt.service.ResponseRefusedException
- All Implemented Interfaces:
Serializable
Exception thrown when executing a prompt query and the system refused to accept the response from the prompt service,
e.g. because violates the system's policies or contains unsafe content such as malware.
- Since:
- 8.5.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder forResponseRefusedException.Gets the reason why the response was refused.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
refusalReason
Gets the reason why the response was refused. This can be used to provide more context about the refusal.- Returns:
- The reason why the response was refused.
-
builder
Creates a new builder forResponseRefusedException.- Returns:
- The new builder.
-