# Got an Error while using set\_type\_override\_by\_type

**URL:** <https://verificationacademy.com/forums/t/got-an-error-while-using-set-type-override-by-type/35186>\
**Category:** UVM\
**Tags:** uvm-components-compilation, UVM, ncelab-E, set\_type\_override\_by\_type, factory-overrides\
**Created:** [October 15, 2018, 10:34am UTC](https://verificationacademy.com/forums/t/got-an-error-while-using-set-type-override-by-type/35186 "2018-10-15T10:34:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cgales](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/c/ccd318/32.png) [@cgales](https://verificationacademy.com/forums/u/cgales)\
**Post date:** [October 15, 2018, 11:29am UTC](https://verificationacademy.com/forums/t/got-an-error-while-using-set-type-override-by-type/35186/2 "2018-10-15T11:29:18Z")

</div>

_In reply to [Kanth](https://verificationacademy.com/forums/t/got-an-error-while-using-set-type-override-by-type/35186):_

All of the connections made need to refer to the base classes. In this case, it would be ‘base\_monitor’. Since pkt\_port only exists in the extended ‘ext\_monitor’, the connect phase has no knowledge of this port, hence the error.

Typically, extended classes will only change the behavior of an object or component, either by an added constraint or additional checks. You won’t be able to add any additional exports/imports as the base class has no access to these.

---

_[View the full topic](https://verificationacademy.com/forums/t/got-an-error-while-using-set-type-override-by-type/35186)._
