Throw an exception when Inject() is called