Class invalid_argument

A derived class of logic_error the invalid_argument is used for exceptions of invalid arguments.

Constructors
  invalid_argument(const string& what_arg);
  

Constructs an object of class invalid_argument. Initializes exception::what to the what_arg argument