Namespaces
Variants
Views
Actions

cpp/error/invalid argument/invalid argument

From cppreference.com
< cpp‎ | error‎ | invalid argument
Revision as of 15:42, 2 November 2012 by P12bot (Talk | contribs)

std::invalid_argument::invalid_argument

explicit invalid_argument( const std::string& what_arg );
(1)
explicit invalid_argument( 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)