Class InjectionException
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
messagestringThe 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
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
sourceTypeDefThe type that failed to inject.
innerExceptionExceptionThe exception that caused the failure.
Properties
SourceTypeFullName
Full name of the source type that failed to inject, if known.
public string SourceTypeFullName { get; }