using System;
namespace Unosquare.Swan.Exceptions {
///
/// 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) {
}
}
}