Name

runtime_error class — Base class for runtime errors

Synopsis

class runtime_error : public exception {
public:
  explicit runtime_error(const string& what_arg);
};

The runtime_error class is the base class for runtime errors, which are errors that cannot reasonably be detected by a static analysis of the code but can be revealed only at runtime.

Get C++ In a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.