namespace Swan.DependencyInjection { using System; /// /// An exception for dependency resolutions. /// /// [Serializable] public class DependencyContainerResolutionException : Exception { /// /// Initializes a new instance of the class. /// /// The type. public DependencyContainerResolutionException(Type type) : base($"Unable to resolve type: {type.FullName}") { } /// /// Initializes a new instance of the class. /// /// The type. /// The inner exception. public DependencyContainerResolutionException(Type type, Exception innerException) : base($"Unable to resolve type: {type.FullName}", innerException) { } } }