This exception is thrown when there isn't any Port defined in the device structure. Without a Port there cannot be any communication with the control system.
#include <exceptions.h>