nibcq.errors.EmptySerialNumberError =================================== .. py:exception:: nibcq.errors.EmptySerialNumberError(message: str = 'Device serial number cannot be empty.') Bases: :py:obj:`BCQError` Exception raised when a device is initialized with an empty serial number. This typically occurs when the device is simulated (not real hardware). :param message: Custom error message. Defaults to a standard message. :type message: str, optional .. rubric:: Example >>> raise EmptySerialNumberError("Device serial number cannot be empty.")