Update error-handling.md (#23266)

* Update error-handling.md

* Update aspnetcore/fundamentals/error-handling.md
pull/23268/head
Rick Anderson 2021-09-10 11:31:34 -07:00 committed by GitHub
parent d7b5cc3d8a
commit 612315e292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -31,13 +31,15 @@ The templates place <xref:Microsoft.AspNetCore.Builder.DeveloperExceptionPageExt
The preceding code enables the Developer Exception Page ***only*** when the app runs in the Development environment. Detailed exception information should not be displayed publicly when the app runs in the Production environment. For more information on configuring environments, see <xref:fundamentals/environments>.
The Developer Exception Page includes the following information about the exception and the request:
The Developer Exception Page can include the following information about the exception and the request:
* Stack trace
* Query string parameters if any
* Cookies if any
* Headers
The Developer Exception Page is not guaranteed to provide any information. Use [Logging](xref:fundamentals/logging/index) for complete error information.
## Exception handler page
To configure a custom error handling page for the [Production environment](xref:fundamentals/environments), call <xref:Microsoft.AspNetCore.Builder.ExceptionHandlerExtensions.UseExceptionHandler%2A>. This exception handling middleware: