Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
We recommend using Visual Studio 2017

<system_error>

 

The latest version of this topic can be found at <system_error>.

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

#include <system_error>  

Objects

generic_categoryRepresents the category for generic errors.
system_categoryRepresents the category for errors caused by low-level system overflows.

Typedefs

generic_errnoA type that represents the enumeration that provides the symbolic names for all the error-code macros defined by Posix in <errno.h>.

Functions

make_error_codeCreates an error_code object.
make_error_conditionCreates an error_condition object.

Operators

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.

Enumerations

errcProvides symbolic names for all the error-code macros defined by Posix in <errno.h>.

Classes and Structs

error_categoryRepresents the abstract, common base for objects that describes a category of error codes.
error_codeRepresents low-level system errors that are implementation-specific.
error_conditionRepresents user-defined error codes.
is_error_code_enumRepresents a type predicate that tests for the error_code Class enumeration.
is_error_condition_enumRepresents a type predicate that tests for the error_condition Class enumeration.
system_errorRepresents the base class for all exceptions thrown to report a low-level system overflow.

Header: <system_error>

Namespace: std

Header Files Reference

Show:
© 2018 Microsoft