system_error Class
Alt düzey sistem hata raporlamak için oluşan tüm özel durumları için temel sınıf temsil eder.
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();
};
Notlar
Tarafından döndürülen değeri what sınıfında özel durum karşı oluşturulmuş _Message ve saklı nesne türü hata_kodu (ya da code veya error_code(_Errval, _Errcat)).
Üye işlevi code döndüren saklı hata_kodu nesnesi.
Gereksinimler
Başlık: <system_error>
Namespace: std