qcodes/instrument/visa.py
def check_error(self, ret_code: int) -> None:
        """
        Default error checking, raises an error if return code ``!=0``.
        Does not differentiate between warnings or specific error messages.
        Override this function in your driver if you want to add specific
        error messages.

        Args:
            ret_code: A Visa error code. See eg:
                https://github.com/hgrecco/pyvisa/blob/master/pyvisa/errors.py

        Raises:
            visa.VisaIOError: if ``ret_code`` indicates a communication
                problem.
        """
        if ret_code != 0:
            raise visa.VisaIOError(ret_code)

        Default error checking, raises an error if return code ``!=0``.
        Does not differentiate between warnings or specific error messages.
        Override this function in your driver if you want to add specific
        error messages.

        Args:
            ret_code: A Visa error code. See eg:
                https://github.com/hgrecco/pyvisa/blob/master/pyvisa/errors.py

        Raises:
            visa.VisaIOError: if ``ret_code`` indicates a communication
                problem.
        
Default error checking, raises an error if return code ``!=0``.
Does not differentiate between warnings or specific error messages.
Override this function in your driver if you want to add specific
error messages.
Default error checking raises an error if return code ` ` ! = 0 ` ` . Does not differentiate between warnings or specific error messages . Override this function in your driver if you want to add specific error messages .
def check_error(self, ret_code: int) -> None:
        if ret_code != 0:
            raise visa.VisaIOError(ret_code)
def check_error ( self , ret_code : int ) -> None : if ret_code != 0 : raise visa . VisaIOError ( ret_code )
Default error checking, raises an error if return code ``!=0``.
Default error checking raises an error if return code ` ` ! = 0 ` ` .
"""
        Default error checking, raises an error if return code ``!=0``.
        Does not differentiate between warnings or specific error messages.
        Override this function in your driver if you want to add specific
        error messages.

        Args:
            ret_code: A Visa error code. See eg:
                https://github.com/hgrecco/pyvisa/blob/master/pyvisa/errors.py

        Raises:
            visa.VisaIOError: if ``ret_code`` indicates a communication
                problem.
        """
if ``ret_code`` indicates a communication
problem.
if ` ` ret_code ` ` indicates a communication problem .
visa.VisaIOError
self
ret_code
int
A Visa error code.
A Visa error code .