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

Thrown by schema generation when a FieldMeta sets optionsAction without both valueField and labelField, or either of those without optionsAction: options need the action, the value field and the label field together. More...

#include <forms.hpp>

Inheritance diagram for morph::forms::IncompleteOptionsError:

Public Member Functions

 IncompleteOptionsError (std::string_view actionName, std::string_view field, std::string_view missing)
 Constructs the error naming the action type, the member and what it lacks.

Detailed Description

Thrown by schema generation when a FieldMeta sets optionsAction without both valueField and labelField, or either of those without optionsAction: options need the action, the value field and the label field together.

A programming error in the action's declaration, so a std::logic_error, thrown when the action registers.

Definition at line 2047 of file forms.hpp.

Constructor & Destructor Documentation

◆ IncompleteOptionsError()

morph::forms::IncompleteOptionsError::IncompleteOptionsError ( std::string_view actionName,
std::string_view field,
std::string_view missing )
inline

Constructs the error naming the action type, the member and what it lacks.

Parameters
actionNameThe type declaring the member (glz::name_v<Owner>).
fieldThe member's wire name.
missingThe FieldMeta members that must be set and are not.

Definition at line 2053 of file forms.hpp.


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