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

Thrown by schema generation when a Choice<…> member's FieldMeta also sets optionsAction: the member's type already names where its options come from, and two sources cannot both hold. More...

#include <forms.hpp>

Inheritance diagram for morph::forms::ConflictingOptionsError:

Public Member Functions

 ConflictingOptionsError (std::string_view actionName, std::string_view field)
 Constructs the error naming the action type and the member.

Detailed Description

Thrown by schema generation when a Choice<…> member's FieldMeta also sets optionsAction: the member's type already names where its options come from, and two sources cannot both hold.

A programming error in the action's declaration, so a std::logic_error, thrown when the action registers. The fix is to drop optionsAction from the meta, or to make the member a plain type.

Definition at line 2030 of file forms.hpp.

Constructor & Destructor Documentation

◆ ConflictingOptionsError()

morph::forms::ConflictingOptionsError::ConflictingOptionsError ( std::string_view actionName,
std::string_view field )
inline

Constructs the error naming the action type and the member.

Parameters
actionNameThe type declaring the member (glz::name_v<Owner>).
fieldThe member's wire name.

Definition at line 2035 of file forms.hpp.


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