tmp/tmpog8kuuw_/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Members <a id="fs.filesystem.error.members">[[fs.filesystem.error.members]]</a>
|
| 2 |
+
|
| 3 |
+
Constructors are provided that store zero, one, or two paths associated
|
| 4 |
+
with an error.
|
| 5 |
+
|
| 6 |
+
``` cpp
|
| 7 |
+
filesystem_error(const string& what_arg, error_code ec);
|
| 8 |
+
```
|
| 9 |
+
|
| 10 |
+
*Ensures:*
|
| 11 |
+
|
| 12 |
+
- `code() == ec`,
|
| 13 |
+
- `path1().empty() == true`,
|
| 14 |
+
- `path2().empty() == true`, and
|
| 15 |
+
- `string_view(what()).find(what_arg.c_str())` `!= string_view::npos`.
|
| 16 |
+
|
| 17 |
+
``` cpp
|
| 18 |
+
filesystem_error(const string& what_arg, const path& p1, error_code ec);
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
*Ensures:*
|
| 22 |
+
|
| 23 |
+
- `code() == ec`,
|
| 24 |
+
- `path1()` returns a reference to the stored copy of `p1`,
|
| 25 |
+
- `path2().empty() == true`, and
|
| 26 |
+
- `string_view(what()).find(what_arg.c_str())` `!= string_view::npos`.
|
| 27 |
+
|
| 28 |
+
``` cpp
|
| 29 |
+
filesystem_error(const string& what_arg, const path& p1, const path& p2, error_code ec);
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
*Ensures:*
|
| 33 |
+
|
| 34 |
+
- `code() == ec`,
|
| 35 |
+
- `path1()` returns a reference to the stored copy of `p1`,
|
| 36 |
+
- `path2()` returns a reference to the stored copy of `p2`, and
|
| 37 |
+
- `string_view(what()).find(what_arg.c_str())` `!= string_view::npos`.
|
| 38 |
+
|
| 39 |
+
``` cpp
|
| 40 |
+
const path& path1() const noexcept;
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
*Returns:* A reference to the copy of `p1` stored by the constructor,
|
| 44 |
+
or, if none, an empty path.
|
| 45 |
+
|
| 46 |
+
``` cpp
|
| 47 |
+
const path& path2() const noexcept;
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
*Returns:* A reference to the copy of `p2` stored by the constructor,
|
| 51 |
+
or, if none, an empty path.
|
| 52 |
+
|
| 53 |
+
``` cpp
|
| 54 |
+
const char* what() const noexcept override;
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
*Returns:* An NTBS that incorporates the `what_arg` argument supplied to
|
| 58 |
+
the constructor. The exact format is unspecified. Implementations should
|
| 59 |
+
include the `system_error::what()` string and the pathnames of `path1`
|
| 60 |
+
and `path2` in the native format in the returned string.
|
| 61 |
+
|