def exceptionFromStreamError(element):
 error = _parseError(element, NS_XMPP_STREAMS)
 exception = StreamError(error['condition'], error['text'], error['textLang'], error['appCondition'])
 return exception

def exceptionFromStreamError ( element ) : error = _parseError ( element , NS_XMPP_STREAMS ) exception = StreamError ( error [ 'condition' ] , error [ 'text' ] , error [ 'textLang' ] , error [ 'appCondition' ] ) return exception
build an exception object from a stream error .