C++ Exception Library - logic_error
Description
It is a logic error exception. It reports errors that are a consequence of faulty logic within the program such as violating logical preconditions or class invariants and may be preventable.
Declaration
Following is the declaration for std::logic_error.
class logic_error;
C++11
class logic_error;
Parameters
none
Return Value
none
Exceptions
No-throw guarantee − no members throw exceptions.
Members
constructor − what_arg has the same content as the value returned by member what.
what − It is used to get string identifying exception.
exception.htm
Advertisements