다음을 통해 공유


error_code 클래스

Represents low-level system errors that are implementation-specific.

class error_code;

설명

An object of type error_code class stores an error code value and a pointer to an object that represents a category of error codes that describe reported low-level system errors.

생성자

error_code

'error_code' 형식의 개체를 생성합니다.

형식 정의

value_type

A type that represents the stored error code value.

멤버 함수

assign

Assigns an error code value and category to an error code.

범주

Returns the error category.

clear

Clears the error code value and category.

default_error_condition

Returns the default error condition.

message

Returns the name of the error code.

연산자

operator==

Tests for equality between error_code objects.

operator!=

Tests for inequality between error_code objects.

함수입니다.<

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

operator=

Assigns a new enumeration value to the error_code object.

operator bool

Casts a variable of type error_code.

요구 사항

헤더 <system_error>

네임스페이스: std

참고 항목

참조

error_category 클래스

<system_error>