#include <iostream>
#include <exception>

class nullpointerexception: public std::exception { };



int main(void){
try{
throw nullpointerexception();
}
catch(std::exception& e){
std::cerr << e.what() << std::endl;
}


return 0;
}


こんなん書いてみたんだけど、
no named exception thrown
ってでるよ。