Class Guardrail.GuardrailException

Object
Throwable
Exception
RuntimeException
akka.javasdk.agent.Guardrail.GuardrailException
All Implemented Interfaces:
Serializable
Enclosing interface:
Guardrail

public static final class Guardrail.GuardrailException extends RuntimeException
Thrown when report-only is false and a guardrail denies the call or fails.
See Also:
  • Constructor Details

    • GuardrailException

      public GuardrailException(String message)
    • GuardrailException

      public GuardrailException(String message, Throwable cause)
      The cause is the error of a guardrail that failed, or null for a denial.