Namespaces
Variants
Views
Actions

cpp/error/logic error/logic error

From cppreference.com
< cpp | error | logic error
Revision as of 13:33, 29 April 2012 by P12bot (Talk | contribs)

std::logic_error::logic_error

explicit logic_error( const std::string& what_arg );
(1)
explicit logic_error( const char* what_arg );
(2) (since C++11)

Constructs the exception object with what_arg as explanatory string that can be accessed through what().

Parameters

what_arg - explanatory string

Exceptions

(none)