nibcq.errors.DMMParameterError

exception nibcq.errors.DMMParameterError(message: str = 'DMM Parameters are set incorrectly.')

Bases: BCQError

Exception raised when some parameter related to the DMM is incorrect.

These, for example, indicate that some pre-required steps are not done yet on the DMM’s workflow.

This error is specific for the NIBCQ Python API.

Parameters:

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

Examples

The following are examples of how this error can be raised:

  • General: Incorrect Parameter

    >>> raise DMMParameterError("DMM Parameters are set incorrectly.")
    
  • Specific: Measurement not finished before wanting to access it

    >>> raise DMMParameterError("DMM Measurement is not available.")