예제 #1
0
 private async Task HandleRouteCreationException(HttpContext httpContext, TelemetryScopedLogger scopedLogger, RouteCreationException rce)
 {
     LogError(scopedLogger, rce);
     await HandleHttpStatusExceptionAsync(httpContext, rce.Message, HttpStatusCode.BadRequest);
 }
예제 #2
0
 private IActionResult HandleRouteCreationException(ErrorViewModel errorViewModel, RouteCreationException routeCreationException)
 {
     errorViewModel.TechnicalErrors = new List <string> {
         routeCreationException.Message
     };
     return(View(errorViewModel));
 }