.TH "std::system_error" 3cxx "Wed Jul 28 2021" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::system_error \- An exception type that includes an \fCerror_code\fP value\&. .SH SYNOPSIS .br .PP .PP Inherits \fBstd::runtime_error\fP\&. .PP Inherited by \fBstd::experimental::filesystem::v1::filesystem_error\fP, and \fBstd::filesystem::filesystem_error\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBsystem_error\fP (const \fBsystem_error\fP &)=default" .br .ti -1c .RI "\fBsystem_error\fP (\fBerror_code\fP __ec, const char *__what)" .br .ti -1c .RI "\fBsystem_error\fP (\fBerror_code\fP __ec, const \fBstring\fP &__what)" .br .ti -1c .RI "\fBsystem_error\fP (\fBerror_code\fP __ec=\fBerror_code\fP())" .br .ti -1c .RI "\fBsystem_error\fP (int __v, const \fBerror_category\fP &__ecat)" .br .ti -1c .RI "\fBsystem_error\fP (int __v, const \fBerror_category\fP &__ecat, const char *__what)" .br .ti -1c .RI "\fBsystem_error\fP (int __v, const \fBerror_category\fP &__ecat, const \fBstring\fP &__what)" .br .ti -1c .RI "const \fBerror_code\fP & \fBcode\fP () const noexcept" .br .ti -1c .RI "\fBsystem_error\fP & \fBoperator=\fP (const \fBsystem_error\fP &)=default" .br .ti -1c .RI "virtual const char * \fBwhat\fP () const noexcept" .br .in -1c .SH "Detailed Description" .PP An exception type that includes an \fCerror_code\fP value\&. Typically used to report errors from the operating system and other low-level APIs\&. .PP Definition at line 430 of file system_error\&. .SH "Member Function Documentation" .PP .SS "virtual const char* std::runtime_error::what () const\fC [virtual]\fP, \fC [noexcept]\fP, \fC [inherited]\fP" Returns a C-style character string describing the general cause of the current error (the same string passed to the ctor)\&. .br .PP Reimplemented from \fBstd::exception\fP\&. .PP Reimplemented in \fBstd::experimental::filesystem::v1::filesystem_error\fP, and \fBstd::filesystem::filesystem_error\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.