Skip to content

Latest commit

 

History

History
85 lines (55 loc) · 2.04 KB

system-error-functions.md

File metadata and controls

85 lines (55 loc) · 2.04 KB
description title ms.date f1_keywords ms.assetid helpviewer_keywords
Learn more about: <system_error> functions
<system_error> functions
03/15/2019
system_error/std::generic_category
system_error/std::make_error_code
system_error/std::make_error_condition
system_error/std::system_category
57d6f15f-f0b7-4e2f-80fe-31d3c320ee33
std::generic_category
std::make_error_code
std::make_error_condition
std::system_category

<system_error> functions

generic_category

Represents the category for generic errors.

const error_category& generic_category() noexcept;

Remarks

The generic_category object is an implementation of error_category.

is_error_code_enum_v

template <class T>
    inline constexpr bool is_error_code_enum_v = is_error_code_enum<T>::value;

is_error_condition_enum_v

template <class T>
    inline constexpr bool is_error_condition_enum_v = is_error_condition_enum<T>::value;

make_error_code

Creates an error code object.

error_code make_error_code(std::errc error) noexcept;

Parameters

error
The std::errc enumeration value to store in the error code object.

Return Value

The error code object.

Remarks

make_error_condition

Creates an error condition object.

error_condition make_error_condition(std::errc error) noexcept;

Parameters

error
The std::errc enumeration value to store in the error code object.

Return Value

The error condition object.

Remarks

system_category

Represents the category for errors caused by low-level system overflows.

const error_category& system_category() noexcept;

Remarks

The system_category object is an implementation of error_category.