In this chapter, I complete my description of the Web API dispatch process by showing how errors are handled. I’ll show you the different ways you can deal with problems that you anticipate during development and what happens when unexpected problems arise. I explain how to control the response that is sent to the client and how to manage and log unhandled exceptions for the entire application. Table 25-1 summarizes this chapter.
Table 25-1. Chapter Summary
Trigger the default error handling policy.
Throw an exception from an action method or filter.
Throw an exception that generates a specific ...