.TH "std::system_error" 3cxx "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 \fC#include \fP .PP Inherits \fBstd::runtime_error\fP\&. .PP Inherited by \fBstd::experimental::filesystem::v1::filesystem_error\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBsystem_error\fP (\fBconst\fP \fBsystem_error\fP &)=\fBdefault\fP" .br .ti -1c .RI "\fBsystem_error\fP (\fBerror_code\fP \fB__ec\fP, \fBconst\fP char *\fB__what\fP)" .br .ti -1c .RI "\fBsystem_error\fP (\fBerror_code\fP \fB__ec\fP, \fBconst\fP \fBstring\fP &\fB__what\fP)" .br .ti -1c .RI "\fBsystem_error\fP (\fBerror_code\fP \fB__ec\fP=\fBerror_code\fP())" .br .ti -1c .RI "\fBsystem_error\fP (int \fB__v\fP, \fBconst\fP \fBerror_category\fP &\fB__ecat\fP)" .br .ti -1c .RI "\fBsystem_error\fP (int \fB__v\fP, \fBconst\fP \fBerror_category\fP &\fB__ecat\fP, \fBconst\fP char *\fB__what\fP)" .br .ti -1c .RI "\fBsystem_error\fP (int \fB__v\fP, \fBconst\fP \fBerror_category\fP &\fB__ecat\fP, \fBconst\fP \fBstring\fP &\fB__what\fP)" .br .ti -1c .RI "\fBconst\fP \fBerror_code\fP & \fBcode\fP () \fBconst\fP \fBnoexcept\fP" .br .ti -1c .RI "\fBsystem_error\fP & \fBoperator=\fP (\fBconst\fP \fBsystem_error\fP &)=\fBdefault\fP" .br .ti -1c .RI "\fBvirtual\fP \fBconst\fP char * \fBwhat\fP () \fBconst\fP \fBnoexcept\fP" .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\&. .SH "Member Function Documentation" .PP .SS "\fBvirtual\fP \fBconst\fP 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\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.