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
{{ message }}
Repository navigation
Commit 270eec1
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/standard-library/error-category-class.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,10 @@ Represents the abstract, common base for objects that describes a category of er
13
13
14
14
```cpp
15
15
classerror_category;
16
+
17
+
constexprerror_category() noexcept;
18
+
virtual~error_category();
19
+
error_category(const error_category&) = delete
16
20
```
17
21
18
22
## Remarks
@@ -31,13 +35,16 @@ Two predefined objects implement `error_category`: [generic_category](../standar
31
35
|-|-|
32
36
|[default_error_condition](#default_error_condition)|Stores the error code value for an error condition object.|
33
37
|[equivalent](#equivalent)|Returns a value that specifies whether error objects are equivalent.|
38
+
|[generic_category](#generic)||
34
39
|[message](#message)|Returns the name of the specified error code.|
35
40
|[name](#name)|Returns the name of the category.|
41
+
|[system_category](#system)||
36
42
37
43
### Operators
38
44
39
45
|Operator|Description|
40
46
|-|-|
47
+
|[operator=](#op_as)||
41
48
|[operator==](#op_eq_eq)|Tests for equality between `error_category` objects.|
42
49
|[operator!=](#op_neq)|Tests for inequality between `error_category` objects.|
43
50
|[operator<](#op_lt)|Tests if the [error_category](../standard-library/error-category-class.md) object is less than the `error_category` object passed in for comparison.|
@@ -98,6 +105,12 @@ The first member function returns `*this == _Cond.category() && _Cond.value() ==
98
105
99
106
The second member function returns `*this == _Code.category() && _Code.value() == _Errval`.
Copy file name to clipboardExpand all lines: docs/standard-library/system-error.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,7 @@ Include the header \<system_error> to define the exception class `system_error`
50
50
|[error_category](../standard-library/error-category-class.md)|Represents the abstract, common base for objects that describes a category of error codes.|
51
51
|[error_code](../standard-library/error-code-class.md)|Represents low-level system errors that are implementation-specific.|
|[is_error_code_enum](../standard-library/is-error-code-enum-class.md)|Represents a type predicate that tests for the [error_code Class](../standard-library/error-code-class.md) enumeration.|
54
55
|[is_error_condition_enum](../standard-library/is-error-condition-enum-class.md)|Represents a type predicate that tests for the [error_condition Class](../standard-library/error-condition-class.md) enumeration.|
55
56
|[system_error](../standard-library/system-error-class.md)|Represents the base class for all exceptions thrown to report a low-level system overflow.|
0 commit comments