报错页面,报错页面截图

将乐信息网 http://www.jianglexinxi.cn 2020-07-01 09:31 出处:网络
报错页面,报错页面截图,三种呈现错误页面的方式 4: { 5: RequestDelegate handler = async context = await context.Response.WriteAsync(\"Unhandled exception occurred!\");

报错页面,报错页面截图,三种呈现错误页面的方式

 4: {
 5: RequestDelegate handler = async context = await context.Response.WriteAsync("Unhandled exception occurred!");
 6:  
 7: new WebHostBuilder()
 8: .UseKestrel()
 9: .Configure(app = app.UseExceptionHandler(new ExceptionHandlerOptions { ExceptionHandler = handler})
 10: .Run(context = Task.FromException(new InvalidOperationException("Manually thrown exception..."))))
 11: .Build()
 12: .Run();
 13: }
 14: }

本文标题:报错页面,报错页面截图
http://www.jianglexinxi.cn/yanergaozhi/411059.html

0

精彩评论

暂无评论...
验证码 换一张
取 消