Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ContractFailedEventArgs.cs
Go to the documentation of this file.
2
3public sealed class ContractFailedEventArgs : EventArgs
4{
6
7 private readonly string _message;
8
9 private readonly string _condition;
10
11 private readonly Exception _originalException;
12
13 private bool _handled;
14
15 private bool _unwind;
16
18
19 public string? Message => _message;
20
21 public string? Condition => _condition;
22
24
26
27 public bool Handled => _handled;
28
29 public bool Unwind => _unwind;
30
31 public ContractFailedEventArgs(ContractFailureKind failureKind, string? message, string? condition, Exception? originalException)
32 {
33 _failureKind = failureKind;
34 _message = message;
35 _condition = condition;
36 _originalException = originalException;
37 }
38
39 public void SetHandled()
40 {
41 _handled = true;
42 }
43
44 public void SetUnwind()
45 {
46 _unwind = true;
47 }
48}
ContractFailedEventArgs(ContractFailureKind failureKind, string? message, string? condition, Exception? originalException)