예제 #1
0
        public ErrorDto Get()
        {
            var feature = HttpContext.Features.Get <IExceptionHandlerFeature>();

            LogException(feature.Error);
            Response.StatusCode = (int)GetStatusCodeFromException(feature.Error);
            return(ErrorDto.FromException(feature.Error));
        }