Normandy.Guardrails.ViolationError exception (normandy v0.6.1)

View Source

Exception raised when an input guardrail rejects an agent's input.

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()]
}