Editéieren

Deelen iwwer


<system_error>

Include the header <system_error> to define the exception class system_error and related templates for processing low-level system errors.

Requirements

Header: <system_error>

Namespace: std

Members

Objects

Name Description
generic_category Represents the category for generic errors.
is_error_code_enum_v A helper variable template for the is_error_code_enum value.
is_error_condition_enum_v A helper variable template for the is_error_condition_enum value.
system_category Represents the category for operating system errors.

Functions

Name Description
make_error_code Creates an error_code object.
make_error_condition Creates an error_condition object.

Operators

Name Description
operator== Tests if the object on the left side of the operator is equal to the object on the right side.
operator!= Tests if the object on the left side of the operator is not equal to the object on the right side.
operator< Tests if an object is less than the object passed in for comparison.
operator<< Inserts an error_code object into the output stream.

Enums

Name Description
errc Provides symbolic names for all the error-code macros defined by POSIX in <errno.h>.

Classes and Structs

Name Description
error_category Represents the abstract, common base for objects that describes a category of error codes.
error_code Represents low-level system errors that are implementation-specific.
error_condition Represents user-defined error codes.
hash Template specializations of std::hash for error_code and error_condition.
is_error_code_enum Represents a type predicate that tests for the error_code enumeration.
is_error_condition_enum Represents a type predicate that tests for the error_condition enumeration.
system_error Represents the base class for all exceptions thrown to report a low-level system error.

See also

Header Files Reference