def error(self, socket, exc, address=None):
        kwargs = {'message': str(exc), 'args': exc.args}
        fileno = 'none'
        if socket:
            fileno = socket.fileno()
        if address:
            kwargs['address'] = address
        self.log_error(fileno, 'error', **kwargs)
Logs a :py:exc:`socket.error` exception. Logged at the ``ERROR``
dataset/ETHPy150Open slimta/python-slimta/slimta/logging/socket.py/SocketLogger.error