You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/standard-library/domain-error-class.md
+14-10Lines changed: 14 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
---
2
2
description: "Learn more about: domain_error Class"
3
3
title: "domain_error Class"
4
-
ms.date: "11/04/2016"
4
+
ms.date: "09/09/2021"
5
5
f1_keywords: ["stdexcept/std::domain_error"]
6
6
helpviewer_keywords: ["domain_error class"]
7
7
ms.assetid: a1d8245d-61c2-4d1e-973f-073bd5dd5fa3
8
8
---
9
9
# domain_error Class
10
10
11
-
The class serves as the base class for all exceptions thrown to report a domain error.
11
+
The class serves as the base class for all exceptions thrown to report a domain error (as in mathematics, not networking).
12
12
13
13
## Syntax
14
14
@@ -26,26 +26,30 @@ public:
26
26
27
27
The value returned by `what()` is a copy of `message.data()`. For more information, see [`what`](../standard-library/exception-class.md) and [`data`](../standard-library/basic-string-class.md#data).
28
28
29
+
`domain_error` isn't thrown by any functions in the Microsoft implementation of the C++ Standard Library, but it might be thrown by third-party libraries or user code.
Copy file name to clipboardExpand all lines: docs/standard-library/range-error-class.md
+13-9Lines changed: 13 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
---
2
2
description: "Learn more about: range_error Class"
3
3
title: "range_error Class"
4
-
ms.date: "08/14/2018"
4
+
ms.date: "09/09/2021"
5
5
f1_keywords: ["stdexcept/std::range_error"]
6
6
helpviewer_keywords: ["range_error class"]
7
7
ms.assetid: 8afb3e88-fc49-4213-b096-ed63d7aea37c
8
8
---
9
9
# range_error Class
10
10
11
-
The class serves as the base class for all exceptions thrown to report a range error.
11
+
The class serves as the base class for all exceptions thrown to report a range error (as in mathematics, not iterators).
12
12
13
13
## Syntax
14
14
@@ -22,26 +22,30 @@ public:
22
22
23
23
## Remarks
24
24
25
-
The value returned by [what](../standard-library/exception-class.md) is a copy of `message.data`. For more information, see [basic_string::data](../standard-library/basic-string-class.md#data).
25
+
The value returned by [what](../standard-library/exception-class.md) is a copy of `message.data()`. For more information, see [basic_string::data](../standard-library/basic-string-class.md#data).
0 commit comments