Using the FaultHandler Activity

If you think about it, having a Throw activity is not as useful as having a Throw activity combined with some activity designed to handle the exception, and that’s the purpose of the FaultHandler activity. You use FaultHandler in a slightly different way than any of the activities we’ve seen so far. In fact, it’s time to take a little detour and look more closely at the visual designer. Why? Because there is a separate design surface for fault handlers than for workflow activities (and, in fact, there is a third design surface for cancellation processing, which we’ll also see at this point).

Note

Note

In Chapter 15, we’ll ...

Get Microsoft® Windows® Workflow Foundation Step by Step now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.