>>176
例えば

#include <iostream>
#include <stdexcept>

void func() throw(std::exception)
{
throw std::runtime_error("error");
}

int main()
{
try {
func();
}
catch (const std::exception& e) {
std::cout << e.what() << std::endl;
}
}