Skip to content

Commit

Permalink
Merge pull request #681 from snmcCode/mo-custom-exception
Browse files Browse the repository at this point in the history
return some exception codes in the logVisit
  • Loading branch information
snmcCode authored Jan 3, 2022
2 parents b4cfe6c + 44a3aac commit 17ebfae
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions BackEnd/LogVisit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ public async Task<IActionResult> Run(
helper.DebugLogger.StatusCode = CustomStatusCodes.NOTFOUNDINSQLDATABASE;
helper.DebugLogger.StatusCodeDescription = CustomStatusCodes.GetStatusCodeDescription(helper.DebugLogger.StatusCode);
helper.DebugLogger.LogFailure();
throw e;
}

catch (UnverifiedException e)
Expand All @@ -142,7 +141,6 @@ public async Task<IActionResult> Run(
helper.DebugLogger.StatusCode = CustomStatusCodes.UNVERIFIEDVISITOR;
helper.DebugLogger.StatusCodeDescription = CustomStatusCodes.GetStatusCodeDescription(helper.DebugLogger.StatusCode);
helper.DebugLogger.LogWarning();
throw e;
}

catch (BadRequestBodyException e)
Expand All @@ -164,7 +162,6 @@ public async Task<IActionResult> Run(
helper.DebugLogger.StatusCode = CustomStatusCodes.NOT_BOOKED;
helper.DebugLogger.StatusCodeDescription = CustomStatusCodes.GetStatusCodeDescription(helper.DebugLogger.StatusCode);
helper.DebugLogger.LogFailure();
throw e;
}

catch (Exception e)
Expand Down

0 comments on commit 17ebfae

Please sign in to comment.