Guest User

Untitled

a guest
Jan 16th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. "error! value was " + std::to_string(actualValue) + " but I expected " + std::to_string(expectedValue)
  2.  
  3. #include <sstream>
  4. std::stringstream ss;
  5. ss << "Hello world!" << std::endl;
  6. throw std::runtime_error(ss.str());
  7.  
  8. #include <stdexcept>
  9. throw std::runtime_error(
  10. fmt::format("Error has been detected with code {} while {}",
  11. 0x42, "copying"));
Add Comment
Please, Sign In to add comment