Struct exception

Synopsis

#include <toml/exception.hpp>

struct exception : public std::exception

Description

No description yet.

Mentioned in

Inheritance

Ancestors: std::exception

Decsendents: internal_error, type_error, syntax_error

Methods

exception
~exception
location

Mentioned in

what

Source

Lines 13-23 in toml/exception.hpp.

struct exception : public std::exception
{
  public:
    explicit exception(const source_location& loc): loc_(loc) {}
    virtual ~exception() noexcept override = default;
    virtual const char* what() const noexcept override {return "";}
    virtual source_location const& location() const noexcept {return loc_;}

  protected:
    source_location loc_;
};





Add Discussion as Guest

Log in