From b66d87e0252d8f3e3161222c9f7e6b923b64f4a4 Mon Sep 17 00:00:00 2001 From: Rageking8 <106309953+Rageking8@users.noreply.github.com> Date: Fri, 8 Aug 2025 17:19:54 +0800 Subject: [PATCH 1/4] Add backticks in `` header reference --- docs/standard-library/system-error.md | 42 +++++++++++++-------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/docs/standard-library/system-error.md b/docs/standard-library/system-error.md index 0d12bfef30..cb0f6967ea 100644 --- a/docs/standard-library/system-error.md +++ b/docs/standard-library/system-error.md @@ -8,13 +8,13 @@ ms.assetid: 5e046c6e-48d9-4740-8c8a-05f3727c1215 --- # `` -Include the header \ to define the exception class `system_error` and related templates for processing low-level system errors. +Include the header `` to define the exception class `system_error` and related templates for processing low-level system errors. ## Requirements -**Header:** \ +**Header:** `` -**Namespace:** std +**Namespace:** `std` ## Members @@ -22,44 +22,44 @@ Include the header \ to define the exception class `system_error` |Name|Description| |-|-| -|[generic_category](../standard-library/system-error-functions.md#generic_category)|Represents the category for generic errors.| -|[is_error_code_enum_v](../standard-library/system-error-functions.md#is_error_code_enum_v)|| -|[is_error_condition_enum_v](../standard-library/system-error-functions.md#is_error_condition_enum_v)|| -|[system_category](../standard-library/system-error-functions.md#system_category)|Represents the category for errors caused by low-level system overflows.| +|[`generic_category`](../standard-library/system-error-functions.md#generic_category)|Represents the category for generic errors.| +|[`is_error_code_enum_v`](../standard-library/system-error-functions.md#is_error_code_enum_v)|| +|[`is_error_condition_enum_v`](../standard-library/system-error-functions.md#is_error_condition_enum_v)|| +|[`system_category`](../standard-library/system-error-functions.md#system_category)|Represents the category for errors caused by low-level system overflows.| ### Functions |Name|Description| |-|-| -|[make_error_code](../standard-library/system-error-functions.md#make_error_code)|Creates an `error_code` object.| -|[make_error_condition](../standard-library/system-error-functions.md#make_error_condition)|Creates an `error_condition` object.| +|[`make_error_code`](../standard-library/system-error-functions.md#make_error_code)|Creates an `error_code` object.| +|[`make_error_condition`](../standard-library/system-error-functions.md#make_error_condition)|Creates an `error_condition` object.| ### Operators |Name|Description| |-|-| -|[operator==](../standard-library/system-error-operators.md#op_eq_eq)|Tests if the object on the left side of the operator is equal to the object on the right side.| -|[operator!=](../standard-library/system-error-operators.md#op_neq)|Tests if the object on the left side of the operator is not equal to the object on the right side.| -|[operator<](../standard-library/system-error-operators.md#op_lt)|Tests if an object is less than the object passed in for comparison.| -|[operator<<](../standard-library/system-error-operators.md#op_ostream)|| +|[`operator==`](../standard-library/system-error-operators.md#op_eq_eq)|Tests if the object on the left side of the operator is equal to the object on the right side.| +|[`operator!=`](../standard-library/system-error-operators.md#op_neq)|Tests if the object on the left side of the operator is not equal to the object on the right side.| +|[`operator<`](../standard-library/system-error-operators.md#op_lt)|Tests if an object is less than the object passed in for comparison.| +|[`operator<<`](../standard-library/system-error-operators.md#op_ostream)|| ### Enums |Name|Description| |-|-| -|[errc](../standard-library/system-error-enums.md#errc)|Provides symbolic names for all the error-code macros defined by POSIX in ``.| +|[`errc`](../standard-library/system-error-enums.md#errc)|Provides symbolic names for all the error-code macros defined by POSIX in ``.| ### Classes and Structs |Name|Description| |-|-| -|[error_category](../standard-library/error-category-class.md)|Represents the abstract, common base for objects that describes a category of error codes.| -|[error_code](../standard-library/error-code-class.md)|Represents low-level system errors that are implementation-specific.| -|[error_condition](../standard-library/error-condition-class.md)|Represents user-defined error codes.| -|[hash](../standard-library/hash-structure.md#system_error)|| -|[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.| -|[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.| -|[system_error](../standard-library/system-error-class.md)|Represents the base class for all exceptions thrown to report a low-level system overflow.| +|[`error_category`](../standard-library/error-category-class.md)|Represents the abstract, common base for objects that describes a category of error codes.| +|[`error_code`](../standard-library/error-code-class.md)|Represents low-level system errors that are implementation-specific.| +|[`error_condition`](../standard-library/error-condition-class.md)|Represents user-defined error codes.| +|[`hash`](../standard-library/hash-structure.md#system_error)|| +|[`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.| +|[`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.| +|[`system_error`](../standard-library/system-error-class.md)|Represents the base class for all exceptions thrown to report a low-level system overflow.| ## See also From 71995902323c61ee1bb4f40914a76dd94cdfc1de Mon Sep 17 00:00:00 2001 From: Rageking8 <106309953+Rageking8@users.noreply.github.com> Date: Fri, 8 Aug 2025 17:23:17 +0800 Subject: [PATCH 2/4] Simplify redundant relative links in `` header reference --- docs/standard-library/system-error.md | 38 +++++++++++++-------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/docs/standard-library/system-error.md b/docs/standard-library/system-error.md index cb0f6967ea..6d13e7e129 100644 --- a/docs/standard-library/system-error.md +++ b/docs/standard-library/system-error.md @@ -22,45 +22,45 @@ Include the header `` to define the exception class `system_error` |Name|Description| |-|-| -|[`generic_category`](../standard-library/system-error-functions.md#generic_category)|Represents the category for generic errors.| -|[`is_error_code_enum_v`](../standard-library/system-error-functions.md#is_error_code_enum_v)|| -|[`is_error_condition_enum_v`](../standard-library/system-error-functions.md#is_error_condition_enum_v)|| -|[`system_category`](../standard-library/system-error-functions.md#system_category)|Represents the category for errors caused by low-level system overflows.| +|[`generic_category`](system-error-functions.md#generic_category)|Represents the category for generic errors.| +|[`is_error_code_enum_v`](system-error-functions.md#is_error_code_enum_v)|| +|[`is_error_condition_enum_v`](system-error-functions.md#is_error_condition_enum_v)|| +|[`system_category`](system-error-functions.md#system_category)|Represents the category for errors caused by low-level system overflows.| ### Functions |Name|Description| |-|-| -|[`make_error_code`](../standard-library/system-error-functions.md#make_error_code)|Creates an `error_code` object.| -|[`make_error_condition`](../standard-library/system-error-functions.md#make_error_condition)|Creates an `error_condition` object.| +|[`make_error_code`](system-error-functions.md#make_error_code)|Creates an `error_code` object.| +|[`make_error_condition`](system-error-functions.md#make_error_condition)|Creates an `error_condition` object.| ### Operators |Name|Description| |-|-| -|[`operator==`](../standard-library/system-error-operators.md#op_eq_eq)|Tests if the object on the left side of the operator is equal to the object on the right side.| -|[`operator!=`](../standard-library/system-error-operators.md#op_neq)|Tests if the object on the left side of the operator is not equal to the object on the right side.| -|[`operator<`](../standard-library/system-error-operators.md#op_lt)|Tests if an object is less than the object passed in for comparison.| -|[`operator<<`](../standard-library/system-error-operators.md#op_ostream)|| +|[`operator==`](system-error-operators.md#op_eq_eq)|Tests if the object on the left side of the operator is equal to the object on the right side.| +|[`operator!=`](system-error-operators.md#op_neq)|Tests if the object on the left side of the operator is not equal to the object on the right side.| +|[`operator<`](system-error-operators.md#op_lt)|Tests if an object is less than the object passed in for comparison.| +|[`operator<<`](system-error-operators.md#op_ostream)|| ### Enums |Name|Description| |-|-| -|[`errc`](../standard-library/system-error-enums.md#errc)|Provides symbolic names for all the error-code macros defined by POSIX in ``.| +|[`errc`](system-error-enums.md#errc)|Provides symbolic names for all the error-code macros defined by POSIX in ``.| ### Classes and Structs |Name|Description| |-|-| -|[`error_category`](../standard-library/error-category-class.md)|Represents the abstract, common base for objects that describes a category of error codes.| -|[`error_code`](../standard-library/error-code-class.md)|Represents low-level system errors that are implementation-specific.| -|[`error_condition`](../standard-library/error-condition-class.md)|Represents user-defined error codes.| -|[`hash`](../standard-library/hash-structure.md#system_error)|| -|[`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.| -|[`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.| -|[`system_error`](../standard-library/system-error-class.md)|Represents the base class for all exceptions thrown to report a low-level system overflow.| +|[`error_category`](error-category-class.md)|Represents the abstract, common base for objects that describes a category of error codes.| +|[`error_code`](error-code-class.md)|Represents low-level system errors that are implementation-specific.| +|[`error_condition`](error-condition-class.md)|Represents user-defined error codes.| +|[`hash`](hash-structure.md#system_error)|| +|[`is_error_code_enum`](is-error-code-enum-class.md)|Represents a type predicate that tests for the [`error_code` Class](error-code-class.md) enumeration.| +|[`is_error_condition_enum`](is-error-condition-enum-class.md)|Represents a type predicate that tests for the [`error_condition` Class](error-condition-class.md) enumeration.| +|[`system_error`](system-error-class.md)|Represents the base class for all exceptions thrown to report a low-level system overflow.| ## See also -[Header Files Reference](../standard-library/cpp-standard-library-header-files.md) +[Header Files Reference](cpp-standard-library-header-files.md) From c6fdfafd5787c178f329525a9c2dd0edf4cb9b15 Mon Sep 17 00:00:00 2001 From: Rageking8 <106309953+Rageking8@users.noreply.github.com> Date: Fri, 8 Aug 2025 17:38:59 +0800 Subject: [PATCH 3/4] Add and update descriptions in `` header reference --- docs/standard-library/system-error.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/standard-library/system-error.md b/docs/standard-library/system-error.md index 6d13e7e129..d40120a130 100644 --- a/docs/standard-library/system-error.md +++ b/docs/standard-library/system-error.md @@ -23,16 +23,16 @@ Include the header `` to define the exception class `system_error` |Name|Description| |-|-| |[`generic_category`](system-error-functions.md#generic_category)|Represents the category for generic errors.| -|[`is_error_code_enum_v`](system-error-functions.md#is_error_code_enum_v)|| -|[`is_error_condition_enum_v`](system-error-functions.md#is_error_condition_enum_v)|| -|[`system_category`](system-error-functions.md#system_category)|Represents the category for errors caused by low-level system overflows.| +|[`is_error_code_enum_v`](system-error-functions.md#is_error_code_enum_v)|A helper variable template for the [`is_error_code_enum`](is-error-code-enum-class.md) value.| +|[`is_error_condition_enum_v`](system-error-functions.md#is_error_condition_enum_v)|A helper variable template for the [`is_error_condition_enum`](is-error-condition-enum-class.md) value.| +|[`system_category`](system-error-functions.md#system_category)|Represents the category for operating system errors.| ### Functions |Name|Description| |-|-| -|[`make_error_code`](system-error-functions.md#make_error_code)|Creates an `error_code` object.| -|[`make_error_condition`](system-error-functions.md#make_error_condition)|Creates an `error_condition` object.| +|[`make_error_code`](system-error-functions.md#make_error_code)|Creates an [`error_code`](error-code-class.md) object.| +|[`make_error_condition`](system-error-functions.md#make_error_condition)|Creates an [`error_condition`](error-condition-class.md) object.| ### Operators @@ -41,7 +41,7 @@ Include the header `` to define the exception class `system_error` |[`operator==`](system-error-operators.md#op_eq_eq)|Tests if the object on the left side of the operator is equal to the object on the right side.| |[`operator!=`](system-error-operators.md#op_neq)|Tests if the object on the left side of the operator is not equal to the object on the right side.| |[`operator<`](system-error-operators.md#op_lt)|Tests if an object is less than the object passed in for comparison.| -|[`operator<<`](system-error-operators.md#op_ostream)|| +|[`operator<<`](system-error-operators.md#op_ostream)|Inserts an [`error_code`](error-code-class.md) object into the output stream.| ### Enums @@ -56,10 +56,10 @@ Include the header `` to define the exception class `system_error` |[`error_category`](error-category-class.md)|Represents the abstract, common base for objects that describes a category of error codes.| |[`error_code`](error-code-class.md)|Represents low-level system errors that are implementation-specific.| |[`error_condition`](error-condition-class.md)|Represents user-defined error codes.| -|[`hash`](hash-structure.md#system_error)|| -|[`is_error_code_enum`](is-error-code-enum-class.md)|Represents a type predicate that tests for the [`error_code` Class](error-code-class.md) enumeration.| -|[`is_error_condition_enum`](is-error-condition-enum-class.md)|Represents a type predicate that tests for the [`error_condition` Class](error-condition-class.md) enumeration.| -|[`system_error`](system-error-class.md)|Represents the base class for all exceptions thrown to report a low-level system overflow.| +|[`hash`](hash-structure.md#system_error)|Template specializations of [`std::hash`](hash-class.md) for [`error_code`](error-code-class.md) and [`error_condition`](error-condition-class.md).| +|[`is_error_code_enum`](is-error-code-enum-class.md)|Represents a type predicate that tests for the [`error_code`](error-code-class.md) enumeration.| +|[`is_error_condition_enum`](is-error-condition-enum-class.md)|Represents a type predicate that tests for the [`error_condition`](error-condition-class.md) enumeration.| +|[`system_error`](system-error-class.md)|Represents the base class for all exceptions thrown to report a low-level system error.| ## See also From 52815894a789a320227bbdc248acaa090bfa134c Mon Sep 17 00:00:00 2001 From: Rageking8 <106309953+Rageking8@users.noreply.github.com> Date: Fri, 8 Aug 2025 17:39:41 +0800 Subject: [PATCH 4/4] Update metadata in `` header reference --- docs/standard-library/system-error.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/standard-library/system-error.md b/docs/standard-library/system-error.md index d40120a130..8a633804bf 100644 --- a/docs/standard-library/system-error.md +++ b/docs/standard-library/system-error.md @@ -1,10 +1,9 @@ --- -description: "Learn more about: " title: "" -ms.date: "03/15/2019" +description: "Learn more about: " +ms.date: 03/15/2019 f1_keywords: [""] helpviewer_keywords: ["system_error header"] -ms.assetid: 5e046c6e-48d9-4740-8c8a-05f3727c1215 --- # ``