def __init__(self, error_code):
        abbreviation, description = completion_and_error_messages.get(error_code,
                                                                      ('?', 'Unknown code.'))
        super(VisaIOWarning, self).__init__('%s (%d): %s' % (abbreviation, error_code, description))
        self.error_code = error_code
        self.abbreviation = abbreviation
        self.description = description
dataset/ETHPy150Open hgrecco/pyvisa/pyvisa/errors.py/VisaIOWarning.__init__/original