Hi,

I'm not an expert in C++, but I guess it's legal to throw an exception
in the catch block. Is it not? If not, could you provide a link?

> The reason this code is not proper
> form (aside from the fact that you are throwing a pointer)

I don't understand. Could you provide a link? I read it's OK to throw
Objects in C++ (that's what Java does):
http://www.parashift.com/c++-faq-lite/exceptions.html#faq-17.6

> So, right in the middle of handling
> an exception, you can cause a new exception to be thrown that masks the
> actual exception.

It's not masking, it's converting (to / from RuntimeException). There
are no checked exceptions in C++, so this might not be required.

> standard practice in C++ is to throw classes and
> catch references to classes.

Could you provide a link?

> Is redesigning the exception handling to flatten it out and make it all
> guaranteed no-throw a goal you'd be interested in?

I'm not sure. What do you have in mind?

Regards,
Thomas

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to