nibcq.errors.EmptySerialNumberError

exception nibcq.errors.EmptySerialNumberError(message: str = 'Device serial number cannot be empty.')

Bases: BCQError

Exception raised when a device is initialized with an empty serial number.

This typically occurs when the device is simulated (not real hardware).

Parameters:

message (str, optional) – Custom error message. Defaults to a standard message.

Example

>>> raise EmptySerialNumberError("Device serial number cannot be empty.")