tmp/tmpbg88qv_j/{from.md → to.md}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 3 |
The class `system_error` describes an exception object used to report
|
| 4 |
error conditions that have an associated error code. Such error
|
| 5 |
conditions typically originate from the operating system or other
|
| 6 |
low-level application program interfaces.
|
| 7 |
|
| 8 |
[*Note 1*: If an error represents an out-of-memory condition,
|
| 9 |
implementations are encouraged to throw an exception object of type
|
| 10 |
-
`bad_alloc`
|
| 11 |
|
| 12 |
``` cpp
|
| 13 |
namespace std {
|
| 14 |
class system_error : public runtime_error {
|
| 15 |
public:
|
|
|
|
| 1 |
+
#### Overview <a id="syserr.syserr.overview">[[syserr.syserr.overview]]</a>
|
| 2 |
|
| 3 |
The class `system_error` describes an exception object used to report
|
| 4 |
error conditions that have an associated error code. Such error
|
| 5 |
conditions typically originate from the operating system or other
|
| 6 |
low-level application program interfaces.
|
| 7 |
|
| 8 |
[*Note 1*: If an error represents an out-of-memory condition,
|
| 9 |
implementations are encouraged to throw an exception object of type
|
| 10 |
+
`bad_alloc` [[bad.alloc]] rather than `system_error`. — *end note*]
|
| 11 |
|
| 12 |
``` cpp
|
| 13 |
namespace std {
|
| 14 |
class system_error : public runtime_error {
|
| 15 |
public:
|