Throwing std::ios_base::failure: |<input failure>: unspecified iostream_category error|... Caught std::ios_base::failure: |<input failure>: unspecified iostream_category error|... ok