Try catch blocks - can multiple methods share a single try/catch combination? 
Author Message
 Try catch blocks - can multiple methods share a single try/catch combination?

Quote:

>I've only seen this problem when using "throw;" in a try block. Other,
>more common practices seem to work fine.

    Where else would you use "throw;" ?

--
Truth,
   James [MVP]
http://www.*-*-*.com/       -and-
http://www.*-*-*.com/

begin 666 James M. Curran.vcf


M4DLZ.SLQ."!*;VAN(%-T+"!3=6ET92 R0CM";&]O;69I96QD.TY*.S W,# S
M+34Q-#D-"DQ!0D5,.U=/4DL[14Y#3T1)3D<]455/5$5$+5!224Y404),13HQ
M."!*;VAN(%-T+"!3=6ET92 R0CTP1#TP04)L;V]M9FEE;&0L($Y*(# W,# S
M+34Q-#D-"E523#IH='1P.B\O=W=W+DY*5&AE871E<BYC;VTO2F%M97-#=7)R
M86X-"E523#IH='1P.B\O=W=W+DY*5&AE871E<BYC;VT-"D5-04E,.U!2148[
M24Y415).150Z2F%M97-#=7)R86Y 0V]M<'5397)V92YC;VT-"E)%5CHQ.3DX

`
end
end



Mon, 02 Oct 2000 03:00:00 GMT  
 Try catch blocks - can multiple methods share a single try/catch combination?

On Thu, 16 Apr 1998 11:51:42 -0400, "James Curran"

Quote:


>>I've only seen this problem when using "throw;" in a try block. Other,
>>more common practices seem to work fine.

>    Where else would you use "throw;" ?

In a catch block:

 try       { ... }
 catch (A) { /* Clean up and re... */ throw; }

This is a lot less common:

 try       { throw; }
 catch (A) { ... }

--
Doug Harrison



Mon, 02 Oct 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Try catch blocks - can multiple methods share a single try/catch combination?

2. TRY-CATCH vs. try-catch

3. try/catch VS TRY/CATCH

4. The if ~ else block in try~catch block

5. Can you catch CDBExection with try-catch keyword?

6. why {try catch} does not catch

7. Q: Why try catch cannot catch the exception

8. Optimizer ignores try-catch block

9. try catch block

10. does atl support try..catch block?(empty inside)

11. Overhead of try-catch blocks?

12. /Og causes intermittent omission of try..catch block

 

 
Powered by phpBB® Forum Software