diff --git a/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/DeveloperExceptionPageExtensions.cs b/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/DeveloperExceptionPageExtensions.cs
index 912ebb1f17..bfadd9ed80 100644
--- a/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/DeveloperExceptionPageExtensions.cs
+++ b/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/DeveloperExceptionPageExtensions.cs
@@ -9,31 +9,8 @@ namespace Microsoft.AspNet.Builder
///
/// IApplicationBuilder extension methods for the ErrorPageMiddleware.
///
- public static class ErrorPageExtensions
+ public static class DeveloperExceptionPageExtensions
{
- ///
- /// Captures synchronous and asynchronous exceptions from the pipeline and generates HTML error responses.
- /// Full error details are only displayed by default if 'host.AppMode' is set to 'development' in the IApplicationBuilder.Properties.
- ///
- ///
- ///
- public static IApplicationBuilder UseErrorPage([NotNull] this IApplicationBuilder builder)
- {
- return builder.UseErrorPage(new ErrorPageOptions());
- }
-
- ///
- /// Captures synchronous and asynchronous exceptions from the pipeline and generates HTML error responses.
- /// Full error details are only displayed by default if 'host.AppMode' is set to 'development' in the IApplicationBuilder.Properties.
- ///
- ///
- ///
- ///
- public static IApplicationBuilder UseErrorPage([NotNull] this IApplicationBuilder builder, ErrorPageOptions options)
- {
- return builder.UseMiddleware(options);
- }
-
///
/// Captures synchronous and asynchronous exceptions from the pipeline and generates HTML error responses.
/// Full error details are only displayed by default if 'host.AppMode' is set to 'development' in the IApplicationBuilder.Properties.
diff --git a/src/Microsoft.AspNet.Diagnostics/ExceptionHandler/ExceptionHandlerExtensions.cs b/src/Microsoft.AspNet.Diagnostics/ExceptionHandler/ExceptionHandlerExtensions.cs
index 2be65866f0..4fb98ec834 100644
--- a/src/Microsoft.AspNet.Diagnostics/ExceptionHandler/ExceptionHandlerExtensions.cs
+++ b/src/Microsoft.AspNet.Diagnostics/ExceptionHandler/ExceptionHandlerExtensions.cs
@@ -9,41 +9,6 @@ namespace Microsoft.AspNet.Builder
{
public static class ExceptionHandlerExtensions
{
- ///
- /// Adds a middleware to the pipeline that will catch exceptions, log them, reset the request path, and re-execute the request.
- /// The request will not be re-executed if the response has already started.
- ///
- ///
- ///
- ///
- public static IApplicationBuilder UseErrorHandler(this IApplicationBuilder app, string errorHandlingPath)
- {
- var options = new ExceptionHandlerOptions()
- {
- ExceptionHandlingPath = new PathString(errorHandlingPath)
- };
- return app.UseMiddleware(options);
- }
-
- ///
- /// Adds a middleware to the pipeline that will catch exceptions, log them, and re-execute the request in an alternate pipeline.
- /// The request will not be re-executed if the response has already started.
- ///
- ///
- ///
- ///
- public static IApplicationBuilder UseErrorHandler(this IApplicationBuilder app, Action configure)
- {
- var subAppBuilder = app.New();
- configure(subAppBuilder);
- var errorPipeline = subAppBuilder.Build();
- var options = new ExceptionHandlerOptions()
- {
- ExceptionHandler = errorPipeline
- };
- return app.UseMiddleware(options);
- }
-
///
/// Adds a middleware to the pipeline that will catch exceptions, log them, reset the request path, and re-execute the request.
/// The request will not be re-executed if the response has already started.