Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ PrintException()

static string Terraria.Utilities.CrashWatcher.PrintException ( Exception ex)
inlinestaticprivate

Definition at line 44 of file CrashWatcher.cs.

45 {
46 string text = ex.ToString();
47 try
48 {
49 int num = (int)typeof(Exception).GetProperty("HResult", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic).GetGetMethod(nonPublic: true).Invoke(ex, null);
50 if (num != 0)
51 {
52 text = text + "\nHResult: " + num;
53 }
54 }
55 catch
56 {
57 }
59 {
60 Exception[] loaderExceptions = ((ReflectionTypeLoadException)ex).LoaderExceptions;
61 foreach (Exception ex2 in loaderExceptions)
62 {
63 text = text + "\n+--> " + PrintException(ex2);
64 }
65 }
66 return text;
67 }
override string ToString()
Definition Exception.cs:384
static string PrintException(Exception ex)

References Terraria.Utilities.CrashWatcher.PrintException(), System.text, and System.Exception.ToString().

Referenced by Terraria.Utilities.CrashWatcher.Inititialize(), and Terraria.Utilities.CrashWatcher.PrintException().