Class 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 Details

    • GuardrailException

      protected GuardrailException(String message)
    • GuardrailException

      protected GuardrailException(String message, Throwable cause)