Package dev.langchain4j.guardrail
Class GuardrailException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.langchain4j.exception.LangChain4jException
dev.langchain4j.guardrail.GuardrailException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InputGuardrailException
,OutputGuardrailException
public sealed class GuardrailException
extends LangChain4jException
permits InputGuardrailException, OutputGuardrailException
Exception thrown when an input or output guardrail validation fails.
This class is not intended to be used within guardrail implementations. It is for the framework only.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
GuardrailException
(String message) protected
GuardrailException
(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
-
GuardrailException
-
GuardrailException
-