namespace Unosquare.Swan.Exceptions
{
using System;
///
/// An exception for dependency resolutions.
///
///
public class DependencyContainerResolutionException : Exception
{
private const string ErrorText = "Unable to resolve type: {0}";
///
/// Initializes a new instance of the class.
///
/// The type.
public DependencyContainerResolutionException(Type type)
: base(string.Format(ErrorText, type.FullName))
{
}
///
/// Initializes a new instance of the class.
///
/// The type.
/// The inner exception.
public DependencyContainerResolutionException(Type type, Exception innerException)
: base(string.Format(ErrorText, type.FullName), innerException)
{
}
}
}