PB.Validate.Error exception (PB v0.1.0)

Copy Markdown View Source

Structured validation failure.

Non-bang validation returns {:error, %PB.Validate.Error{}}. Bang validation raises the same struct as an exception. The violations list uses PB.Validate.Violation, which is richer than the canonical protobuf wire shape.

Summary

Types

t()

@type t() :: %PB.Validate.Error{
  __exception__: true,
  message_name: PB.message_name() | nil,
  operation: :validate,
  violations: [PB.Validate.Violation.t()]
}