What we have done is to use Try/Catch blocks of code and in in the catch block of our code we have the following services:
Catch
–getLastError
–handleError
–EXIT
The handleError service is a service we created which accepts the exceptionInfo from the getLastError service(this service can be found in the WmPublic package in the pub.flow section).
We then use the exceptionInfo and search it for keywords to determine which division in our company the error should goto and generate an email to them with the exception information.
This allows us some flexibility in emailing the exceptions that occur within the flow as well as any other failures that may have been built into the flow that throws the error.
Hope this helps some
#webmethods-Protocol-and-Transport#webMethods#Integration-Server-and-ESB