Namespaces
Variants
Views
Actions

std::logic_error

From cppreference.com
< cpp‎ | error
Revision as of 14:36, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 
 
Defined in header <stdexcept>
class logic_error;

Defines a type of object to be thrown as 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.

cpp/error/exceptionstd-logic error-inheritance.svg
About this image

Inheritance diagram

Member functions

Template:cpp/error/exception/dcl list constructor

Inherited from std::exception

Member functions

[virtual]
destructs the exception object
(virtual public member function of std::exception) [edit]
[virtual]
returns an explanatory string
(virtual public member function of std::exception) [edit]