logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

std::system_error - An exception type that includes an error_code value.

Author

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

                                                    libstdc++                            std::system_error(3cxx)

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

Member Function Documentation

virtualconstchar*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.

Name

       std::system_error - 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.

   PublicMemberFunctionssystem_error (const system_error &)=defaultsystem_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 &)=defaultvirtual const char * what () const noexcept

See Also