Did you know try/catch block in .NET 2.0 works differently than .NET 1.1 for handling non-exception throws. David Betz has written two posts on try/catch exception handling to explain this deference between both versions of framework.
In .NET 2.0, as David is explains in his post, non exception item raised are actually wrapped up with actual exception object. So that means you can easily handle those non-exception items using same try/catch blocks as they are now wrapped in RuntimeWrappedException object.
.NET 2.0 try{}catch{} and try{}catch(Exception ex){} – Part 1
try{}catch{} in .NET 2.0 – Part 2


Recent Comments