Questions tagged [inner-exception]

An exception thrown and wrapped in another exception.

An exception thrown and wrapped in another exception. It can be property of current exception.

34 questions
0
votes
1 answer

Unable to read data from the transport connection: C# HtmlAgilityPack

So i'm making a program (for own purposes) with HtmlAgilityPack in C# that at a certain point loads a webpage. after loading lots of pages, i get this error: Unhandled Exception: System.IO.IOException: Unable to read data from the transpo rt…
breght
  • 57
  • 10
-1
votes
1 answer

How do I Catch an Inner Exception

My send mail Code below is not working correctly. It is not sending any email or returning any errors. I'm not getting an Exception thrown at all from the below code. How would I set up to catch common errors that may be happening in the below…
CsharpBeginner
  • 1,753
  • 8
  • 38
  • 68
-1
votes
2 answers

Get All Exception messages, including InnerException in C#

How can I easily get all Exception messages, including the InnerExceptions in C#, to output to console or logging for example?
Oliver Moolman
  • 468
  • 5
  • 9
-1
votes
1 answer

best practice for catching all exceptions and consolidating them

I want to consolidate all exceptions. Is this a good practice to do so? string consolidatingAllException = string.Empty; try { // some process(); } catch (Exception ex) { …
Pratik
  • 11,534
  • 22
  • 69
  • 99
1 2
3