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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.