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

Why no frontend was selected. More...

#include <frontend.hpp>

Public Types

enum class  Kind : std::uint8_t { MissingName , UnknownName , NoneUsable , NotMade }
 What went wrong. More...

Public Member Functions

std::string message () const
 A message for the user, naming the built frontends.

Public Attributes

Kind kind = Kind::NoneUsable
 What went wrong.
std::string requested
 The name asked for, or the option's name for NotMade; empty otherwise.
std::vector< std::string > built
 The names of the frontends this binary was built with, in order.

Detailed Description

Why no frontend was selected.

Definition at line 211 of file frontend.hpp.

Member Enumeration Documentation

◆ Kind

enum class morph::ui::FrontendError::Kind : std::uint8_t
strong

What went wrong.

Enumerator
MissingName 

A --ui without a name.

UnknownName 

--ui or MORPH_UI names a frontend this binary was not built with.

NoneUsable 

Nothing was named, and no built frontend is usable here.

NotMade 

The chosen option has no make, or its make returned null.

Definition at line 213 of file frontend.hpp.

Member Function Documentation

◆ message()

std::string morph::ui::FrontendError::message ( ) const
inlinenodiscard

A message for the user, naming the built frontends.

Returns
The message.

Definition at line 228 of file frontend.hpp.

Member Data Documentation

◆ kind

Kind morph::ui::FrontendError::kind = Kind::NoneUsable

What went wrong.

Definition at line 220 of file frontend.hpp.

◆ requested

std::string morph::ui::FrontendError::requested

The name asked for, or the option's name for NotMade; empty otherwise.

Definition at line 222 of file frontend.hpp.

◆ built

std::vector<std::string> morph::ui::FrontendError::built

The names of the frontends this binary was built with, in order.

Definition at line 224 of file frontend.hpp.


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