Class GuardrailException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.quarkiverse.langchain4j.guardrails.GuardrailException
- All Implemented Interfaces:
Serializable
Exception thrown when a input or output guardrail validation fails.
This exception is not intended to be used in guardrail implementation. Instead, guardrail implementations should throw
OutputGuardrail.ValidationException
or
InputGuardrail.ValidationException
when the validation fails.
- 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
-
GuardrailException
-