Bucky
Contributor
How do I throw an Exception in a method of a class and have it
travel upwards until it reaches an error handler? In other words,
I want the method to raise an error and the method's caller to
handle the error.
Currently I have the method call surrounded in a Try...Catch block,
but when I Throw the error in the method, the error occurs inside
the method itself.
If this isn't possible, should I just have an Error event and raise
the event when an error occurs?
Thanks
travel upwards until it reaches an error handler? In other words,
I want the method to raise an error and the method's caller to
handle the error.
Currently I have the method call surrounded in a Try...Catch block,
but when I Throw the error in the method, the error occurs inside
the method itself.
If this isn't possible, should I just have an Error event and raise
the event when an error occurs?
Thanks