Example #1
0
 public ActionResult <IEnumerable <string> > GetExceptions()
 {
     try
     {
         _logger.LogInformation($"GET /v1/Exception called");
         var exceptions = _exceptionService.GetExceptions();
         return(new OkObjectResult(exceptions));
     }
     catch (Exception ex)
     {
         _logger.LogError($"GET /v1/Exception caught exception: { ex.Message } Details: { ex.ToString() }");
         _logger.LogError(ex.StackTrace);
         return(NotFound());
     }
 }