SeqAn3  3.0.0
The Modern C++ library for sequence analysis.
seqan3::parser_invalid_argument Class Reference

Argument parser exception that is thrown whenever there is an error while parsing the command line arguments. More...

#include <seqan3/argument_parser/exceptions.hpp>

+ Inheritance diagram for seqan3::parser_invalid_argument:

Public Member Functions

 parser_invalid_argument (std::string const &s)
 The constructor. More...
 
what (T... args)
 

Detailed Description

Argument parser exception that is thrown whenever there is an error while parsing the command line arguments.

Errors caught by the argument_parser:

  • Unknown option/flag (not specified by developer but set by user)
  • Too many positional options
  • Too few positional options
  • Option that was declared as required (option_spec::REQUIRED) was not set
  • Option is not a list but specified multiple times
  • Type conversion failed
  • Validation failed (as defined by the developer)

Constructor & Destructor Documentation

◆ parser_invalid_argument()

seqan3::parser_invalid_argument::parser_invalid_argument ( std::string const &  s)
inline

The constructor.

Parameters
[in]sThe error message.

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