4.6.0
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
fcppt::options::missing_error Class Reference

Detailed Description

Occurs if an argument/flag/option is missing.

A missing error is an error that occurs if a required argument, flag or option has not been specified. Such an error makes fcppt::options::optional parsers return an empty optional.

Public Member Functions

FCPPT_OPTIONS_DETAIL_SYMBOL missing_error (fcppt::options::state &&, fcppt::options::missing_error_variant &&)
 
FCPPT_OPTIONS_DETAIL_SYMBOL fcppt::options::statestate ()
 
FCPPT_OPTIONS_DETAIL_SYMBOL fcppt::options::state const & state () const
 
FCPPT_OPTIONS_DETAIL_SYMBOL fcppt::options::missing_error_varianterror ()
 
FCPPT_OPTIONS_DETAIL_SYMBOL fcppt::options::missing_error_variant const & error () const
 

Constructor & Destructor Documentation

◆ missing_error()

FCPPT_OPTIONS_DETAIL_SYMBOL fcppt::options::missing_error::missing_error ( fcppt::options::state && ,
fcppt::options::missing_error_variant &&  )

Member Function Documentation

◆ error() [1/2]

FCPPT_OPTIONS_DETAIL_SYMBOL fcppt::options::missing_error_variant & fcppt::options::missing_error::error ( )
nodiscard

◆ error() [2/2]

FCPPT_OPTIONS_DETAIL_SYMBOL fcppt::options::missing_error_variant const & fcppt::options::missing_error::error ( ) const
nodiscard

◆ state() [1/2]

FCPPT_OPTIONS_DETAIL_SYMBOL fcppt::options::state & fcppt::options::missing_error::state ( )
nodiscard

◆ state() [2/2]

FCPPT_OPTIONS_DETAIL_SYMBOL fcppt::options::state const & fcppt::options::missing_error::state ( ) const
nodiscard