language: C++ 4.7.2 (gcc-4.7.2)
date: 664 days 22 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdexcept>
#include <iostream>
 
struct tricky_exception : public std::exception {
tricky_exception() { throw std::runtime_error( "hah!" ); }
};
 
int main() {
try { throw tricky_exception(); }
catch ( std::runtime_error &exc )
{ std::cout << exc.what(); }
}