Function parse_exception

Summary

#include <include/cpptoml.h>

(1) parse_exception(const std::string &err)

(2) parse_exception(const std::string &err, std::size_t line_number)

Function overload

Synopsis

#include <include/cpptoml.h>

parse_exception(const std::string &err)

Description

No description yet.

Source

Lines 1751-1753 in include/cpptoml.h.

parse_exception(const std::string& err) : std::runtime_error{err}
{
}

Synopsis

#include <include/cpptoml.h>

parse_exception(const std::string &err, std::size_t line_number)

Description

No description yet.

Source

Lines 1755-1758 in include/cpptoml.h.

parse_exception(const std::string& err, std::size_t line_number)
    : std::runtime_error{err + " at line " + std::to_string(line_number)}
{
}





Add Discussion as Guest

Log in