nibcq.errors.BCQError

exception nibcq.errors.BCQError(code: int, message: str)

Bases: Exception

Base class for all custom exceptions in the nibcq module.

Parameters:
  • code (int) – The error code.

  • message (str) – Human-readable error message.

Note

Prefer using a specific BCQ error subclass if available. Use this base class only for general or uncategorized BCQ errors.

Example

>>> raise BCQError(5004, "SMU Channels were not provided in ascending order.")