Files
toml11/docs/content.ja/docs/reference/exception.md
2024-06-15 19:27:42 +09:00

683 B

+++ title = "exception.hpp" type = "docs" +++

exception.hpp

toml::exception

toml11で定義される例外型の基底クラスです。

namespace toml
{
struct exception : public std::exception
{
  public:
    virtual ~exception() noexcept override = default;
    virtual const char* what() const noexcept override {return "";}
};
} // toml

メンバ関数

デストラクタ

virtual ~exception() noexcept override = default;

派生する際に上書きします。

what

virtual const char* what() const noexcept override {return "";}

エラーメッセージを返します。派生する際に上書きします。