C++ Stdexcept Library - logic_error


Advertisements

Description

It is a logic error exception and this class defines the type of objects thrown as exceptions to report errors in the internal logical of the program, such as violation of logical preconditions or class invariants.

Declaration

Following is the declaration for std::logic_error.

class logic_error;

C++11

class logic_error;

Parameters

none

Return Value

none

Members

constructor − Here the string passed as what_arg has the same content as the value returned by member what.

stdexcept.htm
Advertisements