ESB Exception Handling

To leverage the exception handling provided by the ESB toolkit, Below are the steps

Add the exception block to your Orchestration

Add the code as in the snapshot inside the exception block

ESBExceptionBlock

When the exception occurs, this block would publish the faultmsg to message box

By default, All fault messages are picked up by the send port “ALL.Exceptions” which populates the ESBExceptionDb. This can be viewed in ESB Management Portal

If you do not want this behavior, then you would have to subscribe the fault messages using “Application” or similar property and handle it in either sharepoint or any other custom mechanism.

Advertisements