dastaub
asked on
visual studio 2008 vb.net
If while inside a try ... catch, a second try...catch is run, is there a way to communicate to the original try...catch that an error occured while inside the other try...catch?
EXAMPLE:
a try...catch is running that opens up a report. The report has an error attempting to get data from SQL. The try...catch inside the report correctly exits the report without issue and control moves back to the original try...catch. The original try...catch has no idea the try...catch in the report caught an error.
EXAMPLE:
a try...catch is running that opens up a report. The report has an error attempting to get data from SQL. The try...catch inside the report correctly exits the report without issue and control moves back to the original try...catch. The original try...catch has no idea the try...catch in the report caught an error.
You could set a flag of some sort, and handle that in code. Otherwise, as far as the outer Try...Catch is concerned, the no error took place (because it was caught).
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.