Here is from http://www.tutorialspoint.com/cplusplus/cpp_exceptions_handling.htm
#include <iostream>
#include <exception>
using namespace std;
struct MyException : public exception
{
const char * what () const throw ()
{
return "C++ Exception";
}
};
I understand the const
after what
means the function does not modify any
members of the struct, but what does the throw()
at the end mean?