std::ios_base::failure::failure

From Cppreference

Jump to: navigation, search
explicit failure( const std::string& message );
explicit failure( const std::string& message, const std::error_code& ec = io_errc::stream );
(pre-C++11 version)
(C++11 version)

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

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

[edit] Parameters

message - explanatory string

[edit] Example