ports.ReferenceClassException
- exception ports.ReferenceClassException(port: int, expected_class: type, found_type: type)
Thrown when accessing port as the wrong class.
from controllables import Piston Piston(0)
The above code will raise an
ReferenceClassException
when run and any reference is assigned to port0
, but it isn’t aPiston
.