[Solved] Difference between Exception(String) and Exception(String,Exception) [closed]


The difference is:

  • The Exception(String, Exception) constructor creates an Exception with an InnerException (Exception) and a message (String)
  • The Exception(String) constructor create an Exception with only a message (String) and the InnerException is NULL

You can check this information here.
https://msdn.microsoft.com/en-us/library/system.exception.exception(v=vs.110).aspx

Hope this helps.

solved Difference between Exception(String) and Exception(String,Exception) [closed]