Table of Contents

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

type Type

Type requested from the container.

name string

Name requested from the container.

message string

Error message

innerException Exception

The 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

string

TypeRequested

The type that was being requested from the container at the time of failure.

public string TypeRequested { get; }

Property Value

string