I am throwing new Exception("messages") from methods in .Net Core API and have below code in startup.cs
\'\'\'\'app.UseExceptionHandler(a => a.R