From Jason Turner

[std.exceptions.general]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpx97v811w/{from.md → to.md} +17 -0
tmp/tmpx97v811w/{from.md → to.md} RENAMED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### General <a id="std.exceptions.general">[[std.exceptions.general]]</a>
2
+
3
+ The C++ standard library provides classes to be used to report certain
4
+ errors [[res.on.exception.handling]] in C++ programs. In the error model
5
+ reflected in these classes, errors are divided into two broad
6
+ categories: *logic* errors and *runtime* errors.
7
+
8
+ The distinguishing characteristic of logic errors is that they are due
9
+ to errors in the internal logic of the program. In theory, they are
10
+ preventable.
11
+
12
+ By contrast, runtime errors are due to events beyond the scope of the
13
+ program. They cannot be easily predicted in advance. The header
14
+ `<stdexcept>` defines several types of predefined exceptions for
15
+ reporting errors in a C++ program. These exceptions are related by
16
+ inheritance.
17
+