Localize.Inputs.ValidationError exception (Localize.Inputs.Core v0.1.0)

Copy Markdown View Source

Raised by Localize.Inputs.Validator.validate_number/2 when one or more business-rule checks fail (bounds, precision, required).

Wraps a list of {kind, message} entries — one per failing check. Localize.Inputs.Changeset.validate_number/3 unpacks this list and converts each entry into an Ecto.Changeset error with validation: kind metadata.

Summary

Types

A single failed check: {kind, message}.

t()

Types

entry()

@type entry() :: {atom(), String.t()}

A single failed check: {kind, message}.

t()

@type t() :: %Localize.Inputs.ValidationError{
  __exception__: term(),
  errors: [entry()]
}