system_error Class

하위 수준 시스템 오류를 보고 하려면 throw 된 모든 예외에 대 한 기본 클래스를 나타냅니다.

class system_error : public runtime_error {
public:
    explicit system_error(error_code _Errcode, const string& _Message = "");
    system_error(error_code _Errcode, const char *_Message);
    system_error(error_code::value_type _Errval,
        const error_category& _Errcat, const string& _Message);
    system_error(error_code::value_type _Errval,
        const error_category& _Errcat, const char *_Message);
    const error_code& code() const throw();
    const error_code& code() const throw();
    };

설명

반환 값 what 클래스에 예외 에서 생성 _Message 개체는 저장된 하 고 error_code (두 code 또는 error_code(_Errval, _Errcat)).

멤버 함수 code 는 저장 된 반환 error_code 개체입니다.

요구 사항

헤더: <system_error>

네임 스페이스: std

참고 항목

참조

<system_error>