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)
Test that the error condition element has the correct namespace.
dataset/ETHPy150Open slimta/python-slimta/slimta/logging/socket.py/SocketLogger.error--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/words/test/test_jabbererror.py/StanzaErrorTest.test_getElementConditionNamespace