.TH "std::runtime_error" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::runtime_error \- One of two subclasses of exception\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBstd::exception\fP\&. .PP Inherited by \fBstd::overflow_error\fP, \fBstd::range_error\fP, \fBstd::regex_error\fP, \fBstd::system_error\fP, and \fBstd::underflow_error\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBruntime_error\fP (\fBconst\fP char *) _GLIBCXX_TXN_SAFE" .br .ti -1c .RI "\fBruntime_error\fP (\fBconst\fP \fBruntime_error\fP &)=\fBdefault\fP" .br .ti -1c .RI "\fBruntime_error\fP (\fBconst\fP \fBstring\fP &__arg) _GLIBCXX_TXN_SAFE" .br .ti -1c .RI "\fBruntime_error\fP (\fBruntime_error\fP &&) \fBnoexcept\fP" .br .ti -1c .RI "\fBruntime_error\fP & \fBoperator=\fP (\fBconst\fP \fBruntime_error\fP &)=\fBdefault\fP" .br .ti -1c .RI "\fBruntime_error\fP & \fBoperator=\fP (\fBruntime_error\fP &&) \fBnoexcept\fP" .br .ti -1c .RI "\fBvirtual\fP \fBconst\fP char * \fBwhat\fP () \fBconst\fP _GLIBCXX_TXN_SAFE_DYN \fBnoexcept\fP" .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\&. .PP Definition at line \fB219\fP of file \fBstdexcept\fP\&. .SH "Constructor & Destructor Documentation" .PP .SS "std::runtime_error::runtime_error (\fBconst\fP \fBstring\fP & __arg)\fC [explicit]\fP" Takes a character string describing the error\&. .SH "Member Function Documentation" .PP .SS "\fBvirtual\fP \fBconst\fP char * std::runtime_error::what () const\fC [virtual]\fP, \fC [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\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.