Answers for "exception handling .net 6 api"

C#
0

exception handling in c# web api

catch (Exception ex)
            {
                _logger.LogError(ex.ToString());
                Response.AddApplicationError(ex.Message);
                return StatusCode(500, ex.Message);
            }
Posted by: Guest on February-21-2021

Code answers related to "exception handling .net 6 api"

C# Answers by Framework

Browse Popular Code Answers by Language