Table of Contents

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

message string

Description of the failure, including the worker-reported message.

remoteExceptionTypeName string

Full type name of the exception thrown inside the worker, when known.

remoteStackTrace string

Text 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

string

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

string

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.