tagval 0.2.0
Modern C++23 header-only library of tagged values (open/closed enumerations with metadata)
Loading...
Searching...
No Matches
tagval::ParseError Struct Reference

Returned via std::expected from try_of() when a code is not present. More...

#include <error.hpp>

+ Collaboration diagram for tagval::ParseError:

Public Member Functions

std::string message () const
 

Public Attributes

std::string code
 The attempted code.
 
std::string_view kind_id
 The kind it was looked up in.
 

Detailed Description

Returned via std::expected from try_of() when a code is not present.

Member Function Documentation

◆ message()

std::string tagval::ParseError::message ( ) const
inline

Member Data Documentation

◆ code

std::string tagval::ParseError::code

The attempted code.

◆ kind_id

std::string_view tagval::ParseError::kind_id

The kind it was looked up in.


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