Package dev.langchain4j.guardrail
Class OutputGuardrailException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.langchain4j.exception.LangChain4jException
dev.langchain4j.guardrail.GuardrailException
dev.langchain4j.guardrail.OutputGuardrailException
- All Implemented Interfaces:
Serializable
Exception thrown when an output guardrail validation fails.
This class is not intended to be thrown within guardrail implementations. It is for the framework only. It is ok to catch it.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOutputGuardrailException
(String message) OutputGuardrailException
(String message, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OutputGuardrailException
-
OutputGuardrailException
-