mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
doc: add reference manual
This commit is contained in:
41
docs/content.ja/docs/reference/exception.md
Normal file
41
docs/content.ja/docs/reference/exception.md
Normal file
@@ -0,0 +1,41 @@
|
||||
+++
|
||||
title = "exception.hpp"
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
# exception.hpp
|
||||
|
||||
# `toml::exception`
|
||||
|
||||
toml11で定義される例外型の基底クラスです。
|
||||
|
||||
```cpp
|
||||
namespace toml
|
||||
{
|
||||
struct exception : public std::exception
|
||||
{
|
||||
public:
|
||||
virtual ~exception() noexcept override = default;
|
||||
virtual const char* what() const noexcept override {return "";}
|
||||
};
|
||||
} // toml
|
||||
```
|
||||
|
||||
## メンバ関数
|
||||
|
||||
### デストラクタ
|
||||
|
||||
```cpp
|
||||
virtual ~exception() noexcept override = default;
|
||||
```
|
||||
|
||||
派生する際に上書きします。
|
||||
|
||||
### `what`
|
||||
|
||||
```cpp
|
||||
virtual const char* what() const noexcept override {return "";}
|
||||
```
|
||||
|
||||
エラーメッセージを返します。派生する際に上書きします。
|
||||
|
Reference in New Issue
Block a user