Wednesday, December 12, 2007


People sometimes ask, what is the difference between catching System.Exception and the General Exception in a Catch Exception shape in the orchestration designer in BizTalk.

Off course, an obvious difference is, that with the General Exception, you don't get an object with properties to investigate. But then it seems that the General Exception is useless... surely there is a point to it?

Well, I was curious about this myself, so I investigated a bit, and found this post. So basically, I think the catch of the general exception in BizTalk 2006 is a left over from BizTalk 2004. In BizTalk 2004 it made sense, since you actually have exceptions thrown at you that didn't derive from System.Exception. That is no longer possible in .NET 2.0 - they just haven't removed it from the designer - probably just to be backwards compatible.

That's it...


Wednesday, December 12, 2007 7:53:15 PM (Romance Standard Time, UTC+01:00)  #    Comments [4]  | 
Friday, December 21, 2007 4:10:32 PM (Romance Standard Time, UTC+01:00)
The timing couldn't be more perfect. I'm investigating a current orchestration and it's error messages and I stumbled upon empty error messages. Now I know the reason why. Thnx.
Friday, December 21, 2007 6:54:27 PM (Romance Standard Time, UTC+01:00)

Glad I could help :-)

Thursday, November 6, 2008 9:16:31 PM (Romance Standard Time, UTC+01:00)
What about errors raised from external components called from an orchestration that are not based on the .Net framework? Wouldn't a failed C++ object call be caught by a General Exception block and not the System.Exception block?
Sunday, November 9, 2008 1:26:44 AM (Romance Standard Time, UTC+01:00)

No, I don't think so. In order to call the c++ component from your orchestration, you will have to reference it from your project, and this will create a .NET wrapper for it. So exceptions thrown by the c++ component is caught and converted into a .NET exception deriving from System.Exception.

This is my best guess...

All comments require the approval of the site owner before being displayed.
Please login with either your OpenID above, or your details below.
Home page

Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strike, strong, sub, sup, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview

Theme design by Jelle Druyts