Lines Matching refs:error_element

102 AecImpl(XmlElement * error_element, const QName & name,  in AecImpl()  argument
104 error_element->AddElement(new XmlElement(QN_ERROR)); in AecImpl()
105 error_element->AddAttr(QN_CODE, code, 1); in AecImpl()
106 error_element->AddAttr(QN_TYPE, type, 1); in AecImpl()
107 error_element->AddElement(new XmlElement(name, true), 1); in AecImpl()
112 AddErrorCode(XmlElement * error_element, XmppStanzaError code) { in AddErrorCode() argument
115 AecImpl(error_element, QN_STANZA_BAD_REQUEST, "modify", "400"); in AddErrorCode()
118 AecImpl(error_element, QN_STANZA_CONFLICT, "cancel", "409"); in AddErrorCode()
121 AecImpl(error_element, QN_STANZA_FEATURE_NOT_IMPLEMENTED, in AddErrorCode()
125 AecImpl(error_element, QN_STANZA_FORBIDDEN, "auth", "403"); in AddErrorCode()
128 AecImpl(error_element, QN_STANZA_GONE, "modify", "302"); in AddErrorCode()
131 AecImpl(error_element, QN_STANZA_INTERNAL_SERVER_ERROR, "wait", "500"); in AddErrorCode()
134 AecImpl(error_element, QN_STANZA_ITEM_NOT_FOUND, "cancel", "404"); in AddErrorCode()
137 AecImpl(error_element, QN_STANZA_JID_MALFORMED, "modify", "400"); in AddErrorCode()
140 AecImpl(error_element, QN_STANZA_NOT_ACCEPTABLE, "cancel", "406"); in AddErrorCode()
143 AecImpl(error_element, QN_STANZA_NOT_ALLOWED, "cancel", "405"); in AddErrorCode()
146 AecImpl(error_element, QN_STANZA_PAYMENT_REQUIRED, "auth", "402"); in AddErrorCode()
149 AecImpl(error_element, QN_STANZA_RECIPIENT_UNAVAILABLE, "wait", "404"); in AddErrorCode()
152 AecImpl(error_element, QN_STANZA_REDIRECT, "modify", "302"); in AddErrorCode()
155 AecImpl(error_element, QN_STANZA_REGISTRATION_REQUIRED, "auth", "407"); in AddErrorCode()
158 AecImpl(error_element, QN_STANZA_REMOTE_SERVER_NOT_FOUND, in AddErrorCode()
162 AecImpl(error_element, QN_STANZA_REMOTE_SERVER_TIMEOUT, "wait", "502"); in AddErrorCode()
165 AecImpl(error_element, QN_STANZA_RESOURCE_CONSTRAINT, "wait", "500"); in AddErrorCode()
168 AecImpl(error_element, QN_STANZA_SERVICE_UNAVAILABLE, "cancel", "503"); in AddErrorCode()
171 AecImpl(error_element, QN_STANZA_SUBSCRIPTION_REQUIRED, "auth", "407"); in AddErrorCode()
174 AecImpl(error_element, QN_STANZA_UNDEFINED_CONDITION, "wait", "500"); in AddErrorCode()
177 AecImpl(error_element, QN_STANZA_UNEXPECTED_REQUEST, "wait", "400"); in AddErrorCode()
191 XmlElement error_element(element_original->Name()); in SendStanzaError() local
192 error_element.AddAttr(QN_TYPE, "error"); in SendStanzaError()
204 error_element.AddAttr(name, attribute->Value()); in SendStanzaError()
212 error_element.AddText(child->AsText()->Text()); in SendStanzaError()
214 error_element.AddElement(new XmlElement(*(child->AsElement()))); in SendStanzaError()
219 AddErrorCode(&error_element, code); in SendStanzaError()
223 error_element.AddElement(text_element); in SendStanzaError()
226 SendStanza(&error_element); in SendStanzaError()