std::system_error - Man Page

An exception type that includes an error_code value.

Synopsis

#include <system_error>

Inherits std::runtime_error.

Inherited by std::experimental::filesystem::v1::filesystem_error, and std::filesystem::filesystem_error.

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_code & code () const noexcept
system_error & operator= (const system_error &)=default
virtual const char * what () const noexcept

Detailed Description

An exception type that includes an error_code value.

Typically used to report errors from the operating system and other low-level APIs.

Since

C++11

Definition at line 556 of file system_error.

Constructor & Destructor Documentation

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

Definition at line 562 of file system_error.

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

Definition at line 565 of file system_error.

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

Definition at line 568 of file system_error.

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

Definition at line 571 of file system_error.

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

Definition at line 574 of file system_error.

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

Definition at line 578 of file system_error.

Member Function Documentation

const error_code & std::system_error::code () const [inline], [noexcept]

Definition at line 590 of file system_error.

virtual const char * std::runtime_error::what () const [virtual], [noexcept], [inherited]

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.

Reimplemented in std::filesystem::filesystem_error, and std::experimental::filesystem::v1::filesystem_error.

Author

Generated automatically by Doxygen for libstdc++ from the source code.

Info

Tue Jan 17 2023 libstdc++