Display InnerException recursive
public static class Extensions
{
public static string GetFullMessage(this Exception ex)
{
return ex.InnerException == null
? ex.Message
: ex.Message + "\n\n"
+ ex.InnerException.GetFullMessage();
}
}