froodley
Active member
- Joined
- Apr 20, 2010
- Messages
- 26
- Programming Experience
- 1-3
I think I know the answer here... but...
let's say you have a try catch block like this:
Why doesn't this work? if you nest it...
...thusly, it works, obviously, but my understanding was that the catch blocks for a given try were nested, so that the outermost would potentially catch any exceptions not caught by the inner ones. I guess I'm just wrong
Any insights?
let's say you have a try catch block like this:
VB.NET:
try
...
catch se as SpecialException
...
if blah then throw new Exception("blah found")
catch e as Exception
if e.message = "blah found" then foo
end try
Why doesn't this work? if you nest it...
VB.NET:
try
TRY '#2
...
catch se as SpecialException
...
if blah then throw new Exception("blah found")
END TRY '#2
catch e as Exception
if e.message = "blah found" then foo
end try
...thusly, it works, obviously, but my understanding was that the catch blocks for a given try were nested, so that the outermost would potentially catch any exceptions not caught by the inner ones. I guess I'm just wrong
Any insights?