is there a way to change the exception message as readable?

-2

My Application has a ui thread that will be called every 10 seconds. Application functionality happens as usual. But, at some instance I get the exception message in my log which is weird and unable to understand as well.
Have posted the message below.What does this message convey?

Message: System.Exception: {
  "SCID": "001",
  "UserID": "111",
  "InputObj": {
    "Message": "Error while copying content to a stream.",
    "Data": {},
    "InnerException": {
      "Message": "Exception from HRESULT: 0x80072EFF",
      "Data": {},
      "InnerException": {
        "Message": "Exception from HRESULT: 0x80072EFF",
        "Data": {},
        "InnerException": null,
        "StackTrace": "   at Windows.Storage.Streams.IInputStream.ReadAsync(IBuffer buffer, UInt32 count, InputStreamOptions options)\r\n   at System.IO.WinRtToNetFxStreamAdapter.<ReadAsyncInternal>d__43.MoveNext()",
        "HelpLink": null,
        "Source": "Windows",
        "HResult": -2147012865
      },
      "StackTrace": "   at System.IO.WinRtToNetFxStreamAdapter.<ReadAsyncInternal>d__43.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.IO.BufferedStream.<ReadFromUnderlyingStreamAsync>d__51.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Net.Http.StreamToStreamCopy.<CopyAsyncToPreSizedLimitMemoryStream>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Net.Http.HttpContent.<LoadIntoBufferAsyncCore>d__42.MoveNext()",
      "HelpLink": null,
      "Source": "System.Runtime.WindowsRuntime",
      "HResult": -2146232800
    },
    "StackTrace": "   at System.Net.Http.HttpContent.<LoadIntoBufferAsyncCore>d__42.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Net.Http.HttpClient.<FinishSendAsync>d__58.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Supervisor.ViewModels.AlertsViewModel.<DispalyOnLoad>d__10.MoveNext()",
    "HelpLink": null,
    "Source": "System.Net.Http",
    "HResult": -2146232800
  }
}

c#
asp.net
exception
asp.net-web-api
asked on Stack Overflow Oct 22, 2019 by faizal • edited Oct 22, 2019 by faizal

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0