MCPcopy Create free account
hub / github.com/amule-project/amule / ProcessErrorMessage

Function ProcessErrorMessage

src/UPnPBase.cpp:179–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179static std::string ProcessErrorMessage(
180 const std::string &message,
181 int errorCode,
182 const DOMString errorString,
183 IXML_Document *doc)
184{
185 std::ostringstream msg;
186 if (errorString == NULL || *errorString == 0) {
187 errorString = "Not available";
188 }
189 if (errorCode > 0) {
190 msg << "Error: " <<
191 message <<
192 ": Error code :'";
193 if (doc) {
194 CUPnPError e(doc);
195 msg << e.getErrorCode() <<
196 "', Error description :'" <<
197 e.getErrorDescription() <<
198 "'.";
199 } else {
200 msg << errorCode <<
201 "', Error description :'" <<
202 errorString <<
203 "'.";
204 }
205 AddDebugLogLineN(logUPnP, msg);
206 } else {
207 msg << "Error: " <<
208 message <<
209 ": UPnP SDK error: " <<
210 UpnpGetErrorMessage(errorCode) <<
211 " (" << errorCode << ").";
212 AddDebugLogLineN(logUPnP, msg);
213 }
214
215 return msg.str();
216}
217
218
219static void ProcessActionResponse(

Callers 3

ExecuteMethod · 0.85
GetStateVariableMethod · 0.85
UPnPBase.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected