Struct internal_error

Synopsis

#include <toml/exception.hpp>

struct internal_error : public toml::exception

Description

No description yet.

Mentioned in

Inheritance

Ancestors: exception

Methods

internal_error
~internal_error
what

Source

Lines 51-62 in toml/exception.hpp.

struct internal_error : public toml::exception
{
  public:
    explicit internal_error(const std::string& what_arg, const source_location& loc)
        : exception(loc), what_(what_arg)
    {}
    virtual ~internal_error() noexcept override = default;
    virtual const char* what() const noexcept override {return what_.c_str();}

  protected:
    std::string what_;
};





Add Discussion as Guest

Log in