Click here to Skip to main content
15,902,189 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Questiondtpicker problem Pin
d_smit7-Sep-07 18:56
d_smit7-Sep-07 18:56 
AnswerRe: dtpicker problem Pin
rohitsrivastava9-Sep-07 20:30
rohitsrivastava9-Sep-07 20:30 
QuestionException Error .NET COM DLL on mapped NETWORK drive Pin
ankwrk7-Sep-07 5:30
ankwrk7-Sep-07 5:30 
AnswerRe: Exception Error .NET COM DLL on mapped NETWORK drive Pin
Dave Kreskowiak7-Sep-07 8:44
mveDave Kreskowiak7-Sep-07 8:44 
QuestionException handling Pin
dreamz64807-Sep-07 3:38
dreamz64807-Sep-07 3:38 
AnswerRe: Exception handling Pin
Scott Dorman7-Sep-07 4:30
professionalScott Dorman7-Sep-07 4:30 
GeneralRe: Exception handling Pin
Urs Enzler9-Sep-07 22:01
Urs Enzler9-Sep-07 22:01 
GeneralRe: Exception handling Pin
Scott Dorman10-Sep-07 3:05
professionalScott Dorman10-Sep-07 3:05 
Urs Enzler wrote:
If ExceptionB is derived from ExceptionA then both samples will work in the same way


Right, that's what I said:

In the second example, you will only catch exceptions of type ExceptionA and anything derived from it. So, if ExceptionB is derived from ExceptionA this will work, if not you'll only catch one of the exceptions.


Urs Enzler wrote:
To catch them seperately, the catch blocks have to be switched.


Yes, given the first code sample and making the supposition that ExceptionB is derived from ExceptionA, the catch blocks would need to be in the opposite order. However, the original post stated that both exceptions were derived from ApplicationException, so the catch blocks would work correctly in either order. Again, the second example will only provide the same behavior if ExceptionB is derived from ExceptionA, which was one of the original questions.


Scott.

—In just two days, tomorrow will be yesterday.

[Forum Guidelines] [Articles] [Blog]

QuestionGenerating text in a JPG Pin
JoeRip6-Sep-07 19:21
JoeRip6-Sep-07 19:21 
AnswerRe: Generating text in a JPG Pin
Michael Potter7-Sep-07 4:55
Michael Potter7-Sep-07 4:55 
GeneralRe: Generating text in a JPG Pin
JoeRip7-Sep-07 10:26
JoeRip7-Sep-07 10:26 
GeneralRe: Generating text in a JPG Pin
Michael Potter7-Sep-07 10:37
Michael Potter7-Sep-07 10:37 
GeneralRe: Generating text in a JPG Pin
JoeRip7-Sep-07 11:23
JoeRip7-Sep-07 11:23 
GeneralRe: Generating text in a JPG Pin
Michael Potter7-Sep-07 11:33
Michael Potter7-Sep-07 11:33 
GeneralRe: Generating text in a JPG Pin
Luc Pattyn7-Sep-07 12:26
sitebuilderLuc Pattyn7-Sep-07 12:26 
GeneralRe: Generating text in a JPG Pin
Ed.Poore9-Sep-07 11:17
Ed.Poore9-Sep-07 11:17 
QuestionVisual Studio.NET IDE Pin
yogesh_kumar_agarwal5-Sep-07 19:22
yogesh_kumar_agarwal5-Sep-07 19:22 
AnswerRe: Visual Studio.NET IDE Pin
Ed.Poore9-Sep-07 11:18
Ed.Poore9-Sep-07 11:18 
QuestionFramework origins Pin
HakunaMatada5-Sep-07 18:30
HakunaMatada5-Sep-07 18:30 
AnswerRe: Framework origins Pin
originSH5-Sep-07 21:57
originSH5-Sep-07 21:57 
AnswerRe: Framework origins Pin
Scott Dorman6-Sep-07 18:26
professionalScott Dorman6-Sep-07 18:26 
Question2.0 Printer manipulation Pin
SBarnettAZ5-Sep-07 13:37
SBarnettAZ5-Sep-07 13:37 
QuestionRemoting. I Just Don't Get It Pin
#realJSOP5-Sep-07 9:21
professional#realJSOP5-Sep-07 9:21 
AnswerRe: Remoting. I Just Don't Get It Pin
Rob Graham5-Sep-07 9:47
Rob Graham5-Sep-07 9:47 
GeneralRe: Remoting. I Just Don't Get It Pin
#realJSOP5-Sep-07 10:23
professional#realJSOP5-Sep-07 10:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.