def as_xml(self, stanza_namespace = None): 
if stanza_namespace:<EOL><INDENT>self.error_qname = "<STR_LIT>".format(stanza_namespace)<EOL>self.text_qname = "<STR_LIT>".format(stanza_namespace)<EOL><DEDENT>result = ErrorElement.as_xml(self)<EOL>result.set("<STR_LIT:type>", self.error_type)<EOL>return result<EOL>
Return the XML error representation.

        :Parameters:
            - `stanza_namespace`: namespace URI of the containing stanza
        :Types:
            - `stanza_namespace`: `unicode`

        :returntype: :etree:`ElementTree.Element`