1 2 3 4 5 6
#include <stdexcept> int main(int argc, char const *argv[]) { throw std::invalid_argument("throwing exception for testing"); return 0; }