18 lines
414 B
C#
18 lines
414 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Taloyhtio.GeneralSSO.Server.CodeFiles.Common
|
|
{
|
|
public static class ExceptionExtensions
|
|
{
|
|
public static string ToInfo(this Exception x)
|
|
{
|
|
if (x == null)
|
|
return string.Empty;
|
|
return string.Format("{0}\n{1}", x.Message, x.StackTrace);
|
|
}
|
|
}
|
|
}
|