std::ios_base::failure::failure

From cppreference.com
explicit failure( const std::string& message );

explicit failure( const std::string& message,

                  const std::error_code& ec = std::io_errc::stream );
(until C++11)

(since C++11)
explicit failure( const char* message,
                  const std::error_code& ec = std::io_errc::stream );
(since C++11)

Constructs the exception object using message as explanation string which can later be retrieved using what().

[edit] Parameters

message - explanatory string

[edit] Example