Table of Contents

Class InjectionException

Namespace
Embedix.Core.dnlib.Injection
Assembly
Embedix.Core.dll

Thrown by Inject(TypeDef) when a dnlib.DotNet.TypeDef fails to be injected into the target module. Replaces the plain Exception wrapper used by the original implementation so callers can catch injection failures specifically and still inspect InnerException for the root cause.

public class InjectionException : Exception, ISerializable
Inheritance
InjectionException
Implements
Inherited Members

Constructors

InjectionException(string)

Initializes a new instance of the InjectionException class with a message.

public InjectionException(string message)

Parameters

message string

The error message.

InjectionException(string, Exception)

Initializes a new instance of the InjectionException class with a message and inner exception.

public InjectionException(string message, Exception innerException)

Parameters

message string

The error message.

innerException Exception

The exception that caused this one.

InjectionException(TypeDef, Exception)

Initializes a new instance of the InjectionException class for a type that failed to inject.

public InjectionException(TypeDef source, Exception innerException)

Parameters

source TypeDef

The type that failed to inject.

innerException Exception

The exception that caused the failure.

Properties

SourceTypeFullName

Full name of the source type that failed to inject, if known.

public string SourceTypeFullName { get; }

Property Value

string