Name
logic_error class — Base class for logic errors
Synopsis
class logic_error : public exception { public: explicit logic_error(const string& what_arg); };
The logic_error
class is a
base class for logic-error exceptions. A logic
error is a violation of the preconditions or other
requirements for a function.
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.