class error_with_no_option_name
Declaration
class error_with_no_option_name : public error_with_option_name { /* full declaration omitted */ };Description
Base class of un-parsable options, when the desired option cannot be identified. It makes no sense to have an option name, when we can't match an option to the parameter Having this a part of the error_with_option_name hierarchy makes error handling a lot easier, even if the name indicates some sort of conceptual dissonance!
Declared at: libs/pika/program_options/include/pika/program_options/errors.hpp:261
Inherits from: error_with_option_name
Member Variables
Inherited from error_with_option_name:
- protected m_option_style
- protected m_substitutions
- protected m_substitution_defaults
- public m_error_template
- protected m_message
Method Overview
- public error_with_no_option_name(const std::string & template_, const std::string & original_token = "")
- public void set_option_name(const std::string &)
- public ~error_with_no_option_name() noexcept
Inherited from error_with_option_name:
- public add_context
- protected get_canonical_option_name
- protected get_canonical_option_prefix
- public get_option_name
- protected replace_token
- public set_option_name
- public set_original_token
- public set_prefix
- public set_substitute
- public set_substitute_default
- protected substitute_placeholders
- public what
Inherited from error:
Methods
error_with_no_option_name(
const std::string& template_,
const std::string& original_token = "")
error_with_no_option_name(
const std::string& template_,
const std::string& original_token = "")Declared at: libs/pika/program_options/include/pika/program_options/errors.hpp:265
Parameters
- const std::string& template_
- const std::string& original_token = ""
void set_option_name(const std::string&)
void set_option_name(const std::string&)Description
Does NOT set option name, because no option name makes sense
Declared at: libs/pika/program_options/include/pika/program_options/errors.hpp:272
Parameters
- const std::string&
~error_with_no_option_name() noexcept
~error_with_no_option_name() noexceptDescription
gcc says that throw specification on dtor is loosened without this line
Declared at: libs/pika/program_options/include/pika/program_options/errors.hpp:274