Handling errors

The exception handling process in a .NET-based Function App is similar to any other .NET application. Best practices for handling exceptions in .NET can be found at the following two links:

We will not elaborate on best practices further in this book.

Let us, instead, outline the error handling in Functions Core tools local environment for two cases--handled and unhandled exceptions.

To demonstrate exception handling, let us create another timer-triggered function called ErrorFunction. To do so, follow the same steps as in the previous section on creating ...

Get Serverless computing in Azure with .NET 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.