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
@type t() :: %PB.Validate.Error{ __exception__: true, message_name: PB.message_name() | nil, operation: :validate, violations: [PB.Validate.Violation.t()] }