hey!
I have some questions regarding exceptions.
concerning this code:
try
15 {
16 cout << " Function throwException throws an exception\n";
17 throw exception(); // generate exception
18 } // end try
19 catch ( exception & ) // handle exception
20 {
21 cout << " Exception handled in function throwException"
22 << "\n Function throwException rethrows exception";
23 throw; // rethrow exception for further processing
24 } // end catch
the book states that in line 17 exception is an instance of class exception, that I can't understand, it looks to me more like a function, I would write it that way "throw exception exp" as an example.
Thanks.