Normandy.Guardrails.ViolationError exception (normandy v2.2.0)

View Source

Exception raised when an input or output guardrail rejects an agent's input or answer.

Modeled on Normandy.Schema.ValidationError so callers that already handle validation errors can rescue the two uniformly if desired.

Summary

Types

t()

@type t() :: %Normandy.Guardrails.ViolationError{
  __exception__: true,
  message: String.t(),
  violations: [map()]
}