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

◆ RestoreDispatchState()

void System.Exception.RestoreDispatchState ( in DispatchState dispatchState)
inlinepackageinherited

Definition at line 264 of file Exception.cs.

265 {
266 if (!IsImmutableAgileException(this))
267 {
268 byte[] currentStackTrace = (byte[])dispatchState.StackTrace?.Clone();
269 object[] dynamicMethodArray = (object[])dispatchState.DynamicMethods?.Clone();
270 _watsonBuckets = dispatchState.WatsonBuckets;
271 _ipForWatsonBuckets = dispatchState.IpForWatsonBuckets;
272 _remoteStackTraceString = dispatchState.RemoteStackTrace;
274 _stackTraceString = null;
276 }
277 }
string _stackTraceString
Definition Exception.cs:59
byte[] _watsonBuckets
Definition Exception.cs:57
UIntPtr _ipForWatsonBuckets
Definition Exception.cs:67
static void PrepareForForeignExceptionRaise()
string _remoteStackTraceString
Definition Exception.cs:61
static bool IsImmutableAgileException(Exception e)
static void SaveStackTracesFromDeepCopy(Exception exception, byte[] currentStackTrace, object[] dynamicMethodArray)

References System.Exception._ipForWatsonBuckets, System.Exception._remoteStackTraceString, System.Exception._stackTraceString, System.Exception._watsonBuckets, System.Runtime.Serialization.Dictionary, System.Exception.IsImmutableAgileException(), System.Exception.PrepareForForeignExceptionRaise(), and System.Exception.SaveStackTracesFromDeepCopy().

Referenced by System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw().