libstdc++
std::system_error Class Reference
Inheritance diagram for std::system_error:
[legend]

Public Member Functions

 system_error (const system_error &)=default
 
 system_error (error_code __ec, const char *__what)
 
 system_error (error_code __ec, const string &__what)
 
 system_error (error_code __ec=error_code())
 
 system_error (int __v, const error_category &__ecat)
 
 system_error (int __v, const error_category &__ecat, const char *__what)
 
 system_error (int __v, const error_category &__ecat, const string &__what)
 
const error_codecode () const noexcept
 
system_erroroperator= (const system_error &)=default
 
virtual const char * what () const _GLIBCXX_TXN_SAFE_DYN noexcept
 

Detailed Description

Thrown to indicate error code of underlying system.

Definition at line 341 of file system_error.

Constructor & Destructor Documentation

◆ system_error() [1/6]

std::system_error::system_error ( error_code  __ec = error_code())
inline

Definition at line 347 of file system_error.

◆ system_error() [2/6]

std::system_error::system_error ( error_code  __ec,
const string __what 
)
inline

Definition at line 350 of file system_error.

◆ system_error() [3/6]

std::system_error::system_error ( error_code  __ec,
const char *  __what 
)
inline

Definition at line 353 of file system_error.

◆ system_error() [4/6]

std::system_error::system_error ( int  __v,
const error_category __ecat,
const char *  __what 
)
inline

Definition at line 356 of file system_error.

◆ system_error() [5/6]

std::system_error::system_error ( int  __v,
const error_category __ecat 
)
inline

Definition at line 359 of file system_error.

◆ system_error() [6/6]

std::system_error::system_error ( int  __v,
const error_category __ecat,
const string __what 
)
inline

Definition at line 363 of file system_error.

Member Function Documentation

◆ code()

const error_code & std::system_error::code ( ) const
inlinenoexcept

Definition at line 375 of file system_error.

◆ what()

virtual const char * std::runtime_error::what ( ) const
virtualnoexceptinherited

Returns a C-style character string describing the general cause of the current error (the same string passed to the ctor).

Reimplemented from std::exception.


The documentation for this class was generated from the following file: