|
-
January 9th, 2004, 07:06 PM
#2
Re: Exceptions
Originally posted by stober
If the Registry class shown below throws an exception, I get Windows error "Unhandled Exception.". I though my catch block would get executed.
from the c++ standard, 15.1 (Throwing an exception):
- 6. A throw-expression with no operand rethrows the exception being handled. The exception is reactivated with the existing temporary; no new temporary exception object is created. The exception is no longer considered to be caught; therefore, the value of uncaught_exception() will again be true.
8. If no exception is presently being handled, executing a throw-expression with no operand calls terminate()
so apparently you were wrong.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|