Skip to content

Commit

Permalink
Merge pull request #32250 from tdykstra/endpointmetadata
Browse files Browse the repository at this point in the history
.NET 9 endpoint metadata on error handling page
  • Loading branch information
Rick-Anderson authored Apr 10, 2024
2 parents 4306dcf + 70fec33 commit 662975d
Show file tree
Hide file tree
Showing 3 changed files with 355 additions and 2 deletions.
10 changes: 8 additions & 2 deletions aspnetcore/fundamentals/error-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ description: Discover how to handle errors in ASP.NET Core apps.
monikerRange: '>= aspnetcore-3.1'
ms.author: tdykstra
ms.custom: mvc
ms.date: 07/06/2023
ms.date: 04/03/2024
uid: fundamentals/error-handling
---
# Handle errors in ASP.NET Core

[!INCLUDE[](~/includes/not-latest-version.md)]

:::moniker range=">= aspnetcore-8.0"
:::moniker range=">= aspnetcore-9.0"

By [Tom Dykstra](https://github.com/tdykstra/)

Expand All @@ -35,6 +35,11 @@ The Developer Exception Page can include the following information about the exc
* Query string parameters, if any
* Cookies, if any
* Headers
* Endpoint metadata, if any

The following image shows a sample developer exception page with **Routing** selected and endpoint metadata displayed:

:::image type="content" source="~/fundamentals/error-handling/_static/endpoint-metadata.png" alt-text="Developer exception page with Routing selected and endpoint metadata displayed":::

The Developer Exception Page isn't guaranteed to provide any information. Use [Logging](xref:fundamentals/logging/index) for complete error information.

Expand Down Expand Up @@ -359,4 +364,5 @@ An alternative approach to generate problem details is to use the third-party Nu

:::moniker-end

[!INCLUDE[](~/fundamentals/error-handling/includes/error-handling8.md)]
[!INCLUDE[](~/fundamentals/error-handling/includes/error-handling3-7.md)]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 662975d

Please sign in to comment.