DeveloperExceptionPageExtensions Class¶
Microsoft.AspNetCore.Builder.IApplicationBuilder extension methods for the Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.
- Namespace
Microsoft.AspNetCore.Builder- Assemblies
- Microsoft.AspNetCore.Diagnostics
Syntax¶
public class DeveloperExceptionPageExtensions
-
class
Microsoft.AspNetCore.Builder.DeveloperExceptionPageExtensions
Methods¶
-
UseDeveloperExceptionPage(Microsoft.AspNetCore.Builder.IApplicationBuilder)¶ Captures synchronous and asynchronous
System.Exceptioninstances from the pipeline and generates HTML error responses.Arguments: app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The Microsoft.AspNetCore.Builder.IApplicationBuilder.Return type: Microsoft.AspNetCore.Builder.IApplicationBuilder Returns: A reference to the <em>app</em> after the operation has completed. public static IApplicationBuilder UseDeveloperExceptionPage(this IApplicationBuilder app)
-
UseDeveloperExceptionPage(Microsoft.AspNetCore.Builder.IApplicationBuilder, Microsoft.AspNetCore.Builder.DeveloperExceptionPageOptions) Captures synchronous and asynchronous
System.Exceptioninstances from the pipeline and generates HTML error responses.Arguments: - app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The
Microsoft.AspNetCore.Builder.IApplicationBuilder. - options (Microsoft.AspNetCore.Builder.DeveloperExceptionPageOptions) – A
Microsoft.AspNetCore.Builder.DeveloperExceptionPageOptionsthat specifies options for the middleware.
Return type: Returns: A reference to the <em>app</em> after the operation has completed.
public static IApplicationBuilder UseDeveloperExceptionPage(this IApplicationBuilder app, DeveloperExceptionPageOptions options)
- app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The
-