Class ResolutionFailedException
The exception thrown by the Unity container when an attempt to resolve a dependency fails.
Implements
Inherited Members
Namespace: Unity
Assembly: Unity.Abstractions.dll
Syntax
public class ResolutionFailedException : Exception, ISerializable
Constructors
| Improve this Doc View SourceResolutionFailedException(Type, String, String, Exception)
Create a new ResolutionFailedException that records the exception for the given type and name.
Declaration
public ResolutionFailedException(Type type, string name, string message, Exception innerException = null)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Type requested from the container. |
String | name | Name requested from the container. |
String | message | Error message |
Exception | innerException | The actual exception that caused the failure of the build. |
Properties
| Improve this Doc View SourceNameRequested
The name that was being requested from the container at the time of failure.
Declaration
public string NameRequested { get; }
Property Value
Type | Description |
---|---|
String |
TypeRequested
The type that was being requested from the container at the time of failure.
Declaration
public string TypeRequested { get; }
Property Value
Type | Description |
---|---|
String |