Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DiagnosticUtility.cs
Go to the documentation of this file.
3
5
6internal static class DiagnosticUtility
7{
8 internal static class ExceptionUtility
9 {
10 public static Exception ThrowHelperArgumentNull(string message)
11 {
12 return new ArgumentNullException(message);
13 }
14
16 {
17 return e;
18 }
19
20 public static Exception ThrowHelperArgument(string message)
21 {
22 return new ArgumentException(message);
23 }
24
25 internal static Exception ThrowHelperFatal(string message, Exception innerException)
26 {
27 return ThrowHelperError(new Exception(message, innerException));
28 }
29
31 {
32 return ThrowHelperError(e);
33 }
34 }
35
36 [Conditional("DEBUG")]
38 public static void DebugAssert(string message)
39 {
40 }
41
42 [Conditional("DEBUG")]
43 public static void DebugAssert([DoesNotReturnIf(false)] bool condition, string message)
44 {
45 }
46}
static Exception ThrowHelperFatal(string message, Exception innerException)
static void DebugAssert([DoesNotReturnIf(false)] bool condition, string message)