morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::forms::QuantityDecodeError Struct Reference

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>

Inheritance diagram for morph::forms::QuantityDecodeError:

Public Member Functions

 QuantityDecodeError (std::string_view fieldName)
 Constructs the error with a message naming the offending field.

Detailed Description

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`".

Definition at line 3502 of file forms.hpp.

Constructor & Destructor Documentation

◆ QuantityDecodeError()

morph::forms::QuantityDecodeError::QuantityDecodeError ( std::string_view fieldName)
inlineexplicit

Constructs the error with a message naming the offending field.

Parameters
fieldNameThe wire (JSON) name of the out-of-bounds field.

Definition at line 3505 of file forms.hpp.


The documentation for this struct was generated from the following file: