Class ResolutionFailedException
- Namespace
- Unity
- Assembly
- Unity.Abstractions.dll
The exception thrown by the Unity container when an attempt to resolve a dependency fails.
public class ResolutionFailedException : Exception, ISerializable
- Inheritance
-
ResolutionFailedException
- Implements
- Inherited Members
- Extension Methods
Constructors
ResolutionFailedException(Type, string, string, Exception)
Create a new ResolutionFailedException that records the exception for the given type and name.
public ResolutionFailedException(Type type, string name, string message, Exception innerException = null)
Parameters
typeTypeType requested from the container.
namestringName requested from the container.
messagestringError message
innerExceptionExceptionThe actual exception that caused the failure of the build.
Properties
NameRequested
The name that was being requested from the container at the time of failure.
public string NameRequested { get; }
Property Value
TypeRequested
The type that was being requested from the container at the time of failure.
public string TypeRequested { get; }