Share via


error_category Class

Represents the abstract, common base for objects that describes a category of error codes.

class error_category;

Remarks

Two predefined objects implement error_category: generic_category and system_category.

TypeDefs

value_type

A type that represents the stored error code value.

Member Functions

default_error_condition

Stores the error code value for an error condition object.

equivalent

Returns a value that specifies whether error objects are equivalent.

message

Returns the name of the specified error code.

name

Returns the name of the category.

Operators

operator==

Tests for equality between error_category objects.

operator!=

Tests for inequality between error_category objects.

operator<

Tests if the error_category object is less than the error_category object passed in for comparison.

Requirements

Header: <system_error>

Namespace: std

See Also

Reference

<system_error>