.TH "std::runtime_error" 3 "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::runtime_error \- One of two subclasses of exception\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .PP Inherits \fBstd::exception\fP\&. .PP Inherited by , , \fBstd::overflow_error\fP, \fBstd::range_error\fP, and \fBstd::regex_error\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBruntime_error\fP (const char *)" .br .ti -1c .RI "\fBruntime_error\fP (const runtime_error &) noexcept" .br .ti -1c .RI "\fBruntime_error\fP (const \fBstring\fP &__arg)" .br .ti -1c .RI "\fBruntime_error\fP (runtime_error &&) noexcept" .br .ti -1c .RI "\fBruntime_error\fP & \fBoperator=\fP (const \fBruntime_error\fP &) noexcept" .br .ti -1c .RI "\fBruntime_error\fP & \fBoperator=\fP (\fBruntime_error\fP &&) noexcept" .br .ti -1c .RI "virtual const char * \fBwhat\fP () const noexcept" .br .in -1c .SH "Detailed Description" .PP One of two subclasses of exception\&. Runtime errors represent problems outside the scope of a program; they cannot be easily predicted and can generally only be caught as the program executes\&. .SH "Constructor & Destructor Documentation" .PP .SS "std::runtime_error::runtime_error (const \fBstring\fP & __arg)\fR [explicit]\fP" Takes a character string describing the error\&. .PP References \fBruntime_error()\fP\&. .PP Referenced by \fBruntime_error()\fP\&. .SH "Member Function Documentation" .PP .SS "virtual const char * std::runtime_error::what () const\fR [virtual]\fP, \fR [noexcept]\fP" Returns a C-style character string describing the general cause of the current error (the same string passed to the ctor)\&. .PP Reimplemented from \fBstd::exception\fP\&. .PP Reimplemented in \fBstd::experimental::filesystem::v1::filesystem_error\fP, \fBstd::filesystem::filesystem_error\fP, and \fBstd::ios_base::failure\fP\&. .PP References \fBwhat()\fP\&. .PP Referenced by \fBwhat()\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.