tmp/tmphgg27kkn/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### Class `future_error` <a id="futures.future.error">[[futures.future.error]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
namespace std {
|
| 5 |
+
class future_error : public logic_error {
|
| 6 |
+
public:
|
| 7 |
+
explicit future_error(future_errc e);
|
| 8 |
+
|
| 9 |
+
const error_code& code() const noexcept;
|
| 10 |
+
const char* what() const noexcept;
|
| 11 |
+
|
| 12 |
+
private:
|
| 13 |
+
error_code ec_; // exposition only
|
| 14 |
+
};
|
| 15 |
+
}
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
``` cpp
|
| 19 |
+
explicit future_error(future_errc e);
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
*Effects:* Initializes `ec_` with `make_error_code(e)`.
|
| 23 |
+
|
| 24 |
+
``` cpp
|
| 25 |
+
const error_code& code() const noexcept;
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
*Returns:* `ec_`.
|
| 29 |
+
|
| 30 |
+
``` cpp
|
| 31 |
+
const char* what() const noexcept;
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
*Returns:* An NTBS incorporating `code().message()`.
|
| 35 |
+
|