Raise exception when instantiating interface.