Suppose I have a following code
class Base
{
public Base()
{
throw new SomeKindOfException();
}
}
class Derived : Base
{
}
and suppose I instantiate Derived class.
Derived d = new Derived();
In order for Derived
class to be instantiated the Base
class should be instantiated firstly right ? so is there any theoretical or practical way to catch an exception thrown from base class constructor in derived class constructor. I suppose there is not, but I'm just curious.