ExceptionHelp.cs
410 Bytes
using System;
namespace Infrastructure
{
public static class ExceptionHelp
{
public static string GetAllMessage(Exception e)
{
string message = e.Message + "\r\n";
while (e.InnerException != null)
{
e = e.InnerException;
message += e.Message + "\r\n";
}
return message;
}
}
}