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

Inherited from error_with_option_name:

Inherited from error:

    Methods

    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&)

    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

    Description

    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