def check_for_errors(self):
        if not self.exceptions:
            return
        self.set_state(self.CLOSED)
        self.close()
        raise self.exceptions[0]
Check connection for errors.
dataset/ETHPy150Open eandersson/amqpstorm/amqpstorm/connection.py/Connection.check_for_errors