Sharg 1.1.2-rc.1
The argument parser for bio-c++ tools.
Loading...
Searching...
No Matches
sharg::design_error Class Reference

Parser exception that is thrown whenever there is an design error directed at the developer of the application (e.g. Reuse of option). More...

#include <sharg/exceptions.hpp>

+ Inheritance diagram for sharg::design_error:

Public Member Functions

 design_error (std::string const &s)
 The constructor.
 
- Public Member Functions inherited from sharg::parser_error
 parser_error (std::string const &s)
 The constructor.
 
- Public Member Functions inherited from std::runtime_error
runtime_error (T... args)
 
what (T... args)
 

Detailed Description

Parser exception that is thrown whenever there is an design error directed at the developer of the application (e.g. Reuse of option).

Errors caught by the parser:

  • Reuse of a short or long identifier (must be unique)
  • Both identifiers must not be empty (one is ok)
  • Flag default value must be false

This entity is stable. Since version 1.0.

Constructor & Destructor Documentation

◆ design_error()

sharg::design_error::design_error ( std::string const &  s)
inline

The constructor.

Parameters
[in]sThe error message.

This entity is stable. Since version 1.0.


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