2019-12-03 18:44:25 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Unosquare.Swan.Exceptions {
|
|
|
|
|
/// <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";
|
|
|
|
|
|
2019-02-17 14:08:57 +01:00
|
|
|
|
/// <summary>
|
2019-12-03 18:44:25 +01:00
|
|
|
|
/// Initializes a new instance of the <see cref="DependencyContainerWeakReferenceException"/> class.
|
2019-02-17 14:08:57 +01:00
|
|
|
|
/// </summary>
|
2019-12-03 18:44:25 +01:00
|
|
|
|
/// <param name="type">The type.</param>
|
|
|
|
|
public DependencyContainerWeakReferenceException(Type type)
|
|
|
|
|
: base(String.Format(ErrorText, type.FullName)) {
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-02-17 14:08:57 +01:00
|
|
|
|
}
|