CPP-AP 2.2.6
Command-line argument parser for C++20
Loading...
Searching...
No Matches
ap::type_error Struct Reference

Exception type used for type-related errors. More...

#include <exceptions.hpp>

Inheritance diagram for ap::type_error:
ap::argument_parser_exception

Public Member Functions

 type_error (const std::string &message)
 
- Public Member Functions inherited from ap::argument_parser_exception
 argument_parser_exception (const std::string &message)
 

Static Public Member Functions

static type_error invalid_value_type (const detail::argument_name &arg_name, const std::type_info &value_type) noexcept
 

Detailed Description

Exception type used for type-related errors.

Todo:
Use demangled type names

Definition at line 106 of file exceptions.hpp.

Constructor & Destructor Documentation

◆ type_error()

ap::type_error::type_error ( const std::string &  message)
inlineexplicit

Definition at line 107 of file exceptions.hpp.

Member Function Documentation

◆ invalid_value_type()

static type_error ap::type_error::invalid_value_type ( const detail::argument_name arg_name,
const std::type_info &  value_type 
)
inlinestaticnoexcept

Definition at line 109 of file exceptions.hpp.


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