Class GuardrailViolationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.ants.platform.guardrails.GuardrailViolationException
All Implemented Interfaces:
Serializable

public class GuardrailViolationException extends RuntimeException
Thrown when a guardrail check detects a policy violation and the policy action is ENFORCE (block).
See Also:
  • Constructor Details

    • GuardrailViolationException

      public GuardrailViolationException(String direction, GuardrailResult result)
  • Method Details

    • getDirection

      public String getDirection()
    • getGuardrailResult

      public GuardrailResult getGuardrailResult()