Adding some links related to startup error handling behavior. (#2472)

pull/2404/head^2
Steve Smith 2017-01-04 17:13:29 -05:00 committed by Rick Anderson
parent 5ce1578523
commit 246e3c7572
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
---
---
title: Error Handling | Microsoft Docs
author: ardalis
description: Explains how to handle errors in ASP.NET Core applications
@ -111,7 +111,9 @@ In addition to the exception handling logic in your app, the [server](servers/in
Only the hosting layer can handle exceptions that take place during app startup. Exceptions that occur during app startup can impact server behavior. For example, if an exception happens before you call `KestrelServerOptions.UseHttps`, the hosting layer catches the exception, starts the server, and displays an error page on the non-SSL port. If an exception happens after that line executes, the error page is served over HTTPS instead.
## ASP.NET MVC Error Handling
You can [configure how the host will behave in response to errors during startup](hosting.md#configuring-a-host) using `CaptureStartupErrors` and the `detailedErrors` key.
## ASP.NET MVC error handling
[MVC](../mvc/index.md) apps have some additional options for handling errors, such as configuring exception filters and performing model validation.

View File

@ -28,6 +28,8 @@ The `Startup` class constructor can accept dependencies that are provided throug
The `Startup` class must include a `Configure` method and can optionally include a `ConfigureServices` method, both of which are called when the application starts. The class can also include [environment-specific versions of these methods](environments.md#startup-conventions).
Learn about [handling exceptions during application startup](error-handling.md#startup-exception-handling).
## The Configure method
The `Configure` method is used to specify how the ASP.NET application will respond to HTTP requests. The request pipeline is configured by adding [middleware](middleware.md) components to an `IApplicationBuilder` instance that is provided by dependency injection.