ComponentResolutionException
Exception thrown when resolution process for a component was unsuccessful at some point for whatever reason.
            
                using Castle.Core;
using Castle.Core.Internal;
using System;
namespace Castle.MicroKernel
{
    [Serializable]
    public class ComponentResolutionException : Exception
    {
        public ComponentModel Component { get; set; }
        public ComponentResolutionException(string message)
            : base(message)
        {
            this.SetUp();
        }
        public ComponentResolutionException(string message, Exception innerException)
            : base(message, innerException)
        {
            this.SetUp();
        }
        public ComponentResolutionException(string message, ComponentModel component)
            : base(message)
        {
            this.SetUp();
            Component = component;
        }
        public ComponentResolutionException(string message, Exception innerException, ComponentModel component)
            : base(message, innerException)
        {
            this.SetUp();
            Component = component;
        }
        public ComponentResolutionException(ComponentModel component)
        {
            this.SetUp();
            Component = component;
        }
    }
}