wasSharpNET – Diff between revs 25 and 27

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 25 Rev 27
Line 14... Line 14...
14 { 14 {
15 public static class ExceptionExtensions 15 public static class ExceptionExtensions
16 { 16 {
17 public static string PrettyPrint(this Exception ex, int columns = 80) 17 public static string PrettyPrint(this Exception ex, int columns = 80)
18 { 18 {
19 if(ex == null) 19 if (ex == null)
20 return string.Empty; 20 return string.Empty;
Line 21... Line 21...
21   21  
22 var st = new StackTrace(ex, true); 22 var st = new StackTrace(ex, true);
23 var frames = st.GetFrames(); 23 var frames = st.GetFrames();
Line 60... Line 60...
60 .ToArray()); 60 .ToArray());
Line 61... Line 61...
61   61  
62 return sb.ToString(); 62 return sb.ToString();
63 } 63 }
64 } 64 }
65 } 65 }