Package dev.langchain4j.guardrail
Class InputGuardrailException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.langchain4j.exception.LangChain4jException
dev.langchain4j.guardrail.GuardrailException
dev.langchain4j.guardrail.InputGuardrailException
- All Implemented Interfaces:
Serializable
Exception thrown when an input 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
ConstructorsConstructorDescriptionInputGuardrailException
(String message) InputGuardrailException
(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
-
InputGuardrailException
-
InputGuardrailException
-