Update error-handling.md (#23266)
* Update error-handling.md * Update aspnetcore/fundamentals/error-handling.mdpull/23268/head
parent
d7b5cc3d8a
commit
612315e292
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue