|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
Thrown when a decoded action has a Quantity field whose engaged value falls outside its unit's declared bounds (UnitTraits<E>::bounds). More...
#include <forms.hpp>
Public Member Functions | |
| QuantityDecodeError (std::string_view fieldName) | |
| Constructs the error with a message naming the offending field. | |
Thrown when a decoded action has a Quantity field whose engaged value falls outside its unit's declared bounds (UnitTraits<E>::bounds).
Distinct from morph::model::ValidationError: this is a decode-level rejection — a wire payload that violates a physical/unit constraint baked into the field's type, caught before an action's own validate() (a business-rule check) ever runs. See docs/spec/forms/forms.md, "Pre-decode wire validation — `checkQuantityBounds`".
|
inlineexplicit |