Money.Input.ValidationError exception (Money.Input v0.1.0)

View Source

Raised by Money.Input.Validator.validate_money/2 when one or more business-rule checks fail (bounds, precision, required, currency match).

Wraps a list of {kind, message} entries — one per failing check. Money.Input.Changeset.validate_money/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() :: %Money.Input.ValidationError{__exception__: term(), errors: [entry()]}