Class EmitWorkerInvocationException
- Namespace
- Utils.Reflection.Reflection.Emit
- Assembly
- Utils.Reflection.dll
Thrown on the host side when an isolated Emit worker reports a failure while loading a native DLL or invoking one of its mapped functions.
public sealed class EmitWorkerInvocationException : Exception, ISerializable
- Inheritance
-
EmitWorkerInvocationException
- Implements
- Inherited Members
- Extension Methods
Constructors
EmitWorkerInvocationException(string, string?, string?)
Creates a new instance of EmitWorkerInvocationException.
public EmitWorkerInvocationException(string message, string? remoteExceptionTypeName, string? remoteStackTrace = null)
Parameters
messagestringDescription of the failure, including the worker-reported message.
remoteExceptionTypeNamestringFull type name of the exception thrown inside the worker, when known.
remoteStackTracestringText of the worker-side exception's stack trace, when known.
Properties
RemoteExceptionTypeName
Full type name of the exception that was thrown inside the worker process, when known.
public string? RemoteExceptionTypeName { get; }
Property Value
RemoteStackTrace
Text of the worker-side exception's StackTrace, when known. This is plain text captured on the worker before it crossed the process boundary — not a real Exception object, which cannot be reconstructed with a meaningful stack trace across processes. Included so a caller inspecting or logging this exception can see where the failure actually happened inside the worker, instead of only this exception's own stack trace (which just shows the host-side call into the worker, not the worker-side call chain).
public string? RemoteStackTrace { get; }
Property Value
Methods
ToString()
Creates and returns a string representation of the current exception.
public override string ToString()
Returns
- string
A string representation of the current exception.
Remarks
Appends RemoteStackTrace (when present) after the base ToString() output, labeled to make clear it describes the worker side of the call, not this exception's own (host-side) stack trace.