std::invalid_argument::invalid_argument

From cppreference.com

 
 
 
 
std::invalid_argument
Member functions
invalid_argument::invalid_argument
Inherited from std::exception
exception::~exception
exception::what
 
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().

[edit] Parameters

what_arg - explanatory string

[edit] Exceptions

(none)