471,318 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,318 software developers and data experts.

Exception Handling with Shared Constructors

Is there some reason the exceptions in a class with a shared constructor will
not bubble up the call stack?

I have a class with a shared constructor which calls a shared method
Requery() which initializes the class's shared properties. When an exception
occurs in the Requery method I want to let it bubble up so I can handle it
elsewhere, but it seems the error will not bubble up. The procedure
(outside of this class) that first accesses a shared property of this class
has an exception handler that should catch the exception raised in the shared
class's Requery() method, but I still get an "unhandled exception" message in
the Requery() method.

Thanks,
-CarlT
Jul 22 '05 #1
0 1045

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Tony Johansson | last post: by
4 posts views Thread by ZorpiedoMan | last post: by
9 posts views Thread by =?Utf-8?B?UmFq?= | last post: by
6 posts views Thread by asm23 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.