aspnetcore/samples/ErrorPageSample/Startup.cs

18 lines
338 B
C#

using System;
using Microsoft.AspNet.Builder;
namespace ErrorPageSample
{
public class Startup
{
public void Configure(IBuilder app)
{
app.UseErrorPage();
app.Run(context =>
{
throw new Exception("Demonstration exception");
});
}
}
}