RaspberryIO_26/Swan/DependencyInjection/DependencyContainerWeakReferenceException.cs

23 lines
720 B
C#
Raw Normal View History

2019-12-04 18:57:18 +01:00
namespace Swan.DependencyInjection
{
using System;
/// <summary>
/// Weak Reference Exception.
/// </summary>
/// <seealso cref="System.Exception" />
public class DependencyContainerWeakReferenceException : Exception
{
private const string ErrorText = "Unable to instantiate {0} - referenced object has been reclaimed";
/// <summary>
/// Initializes a new instance of the <see cref="DependencyContainerWeakReferenceException"/> class.
/// </summary>
/// <param name="type">The type.</param>
public DependencyContainerWeakReferenceException(Type type)
: base(string.Format(ErrorText, type.FullName))
{
}
}
}