def __init__(self, element = None, from_jid = None, to_jid = None,<EOL>stanza_type = None, stanza_id = None,<EOL>error = None, error_cond = None, return_path = None,<EOL>language = None,<EOL>subject = None, body = None, thread = None):
<EOL>self._subject = None<EOL>self._body = None<EOL>self._thread = None<EOL>if element is None:<EOL><INDENT>element = "<STR_LIT:message>"<EOL><DEDENT>elif not isinstance(element, ElementClass):<EOL><INDENT>raise TypeError("<STR_LIT>" + repr(element))<EOL><DEDENT>Stanza.__init__(self, element, from_jid = from_jid, to_jid = to_jid,<EOL>stanza_type = stanza_type, stanza_id = stanza_id,<EOL>error = error, error_cond = error_cond,<EOL>return_path = return_path, language = language)<EOL>if self.element_name != "<STR_LIT:message>":<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>self._subject_tag = self._ns_prefix + "<STR_LIT>"<EOL>self._body_tag = self._ns_prefix + "<STR_LIT:body>"<EOL>self._thread_tag = self._ns_prefix + "<STR_LIT>"<EOL>if self._element is not None:<EOL><INDENT>self._decode_subelements()<EOL><DEDENT>if subject is not None:<EOL><INDENT>self.subject = subject<EOL><DEDENT>if body is not None:<EOL><INDENT>self.body = body<EOL><DEDENT>if thread is not None:<EOL><INDENT>self.thread = thread<EOL><DEDENT>
Initialize a `Message` object.

        :Parameters:
            - `element`: XML element of this stanza.
            - `from_jid`: sender JID.
            - `to_jid`: recipient JID.
            - `stanza_type`: staza type: one of: "normal", "chat", "headline",
              "error", "groupchat"
            - `stanza_id`: stanza id -- value of stanza's "id" attribute. If
              not given, then unique for the session value is generated.
            - `error_cond`: error condition name. Ignored if `stanza_type`
              is not "error".
            - `language`: default language for the stanza content
            - `subject`: message subject,
            - `body`: message body.
            - `thread`: message thread id.
        :Types:
            - `element`: :etree:`ElementTree.Element`
            - `from_jid`: `JID`
            - `to_jid`: `JID`
            - `stanza_type`: `unicode`
            - `stanza_id`: `unicode`
            - `error`: `pyxmpp.error.StanzaErrorElement`
            - `error_cond`: `unicode`
            - `subject`: `unicode`
            - `body`: `unicode`
            - `thread`: `unicode`
            - `language`: `unicode`