This commit is contained in:
2019-10-22 20:33:18 +00:00
parent 4da7fbee0d
commit bcd050c4c9
7 changed files with 100 additions and 56 deletions

View File

@@ -376,6 +376,7 @@ namespace AyaNova.Api.Controllers
[HttpGet("exception")]
public ActionResult GetException()
{
log.LogCritical("Widget::getexception->CRITICAL LOG TEST");
if (!serverState.IsOpen)
return StatusCode(503, new ApiErrorResponse(ApiErrorCode.API_CLOSED, null, serverState.Reason));
throw new System.NotSupportedException("Test exception from widget controller");