NXS_XMLRPC_Error

NXS_XMLRPC_Error.

Defined (1)

The class is defined in the following location(s).

/inc-cl/apis/xmlrpc-client.php  
  1. class NXS_XMLRPC_Error 
  2. var $code; 
  3. var $message; 
  4.  
  5. function NXS_XMLRPC_Error($code, $message) 
  6. $this->code = $code; 
  7. $this->message = htmlspecialchars($message); 
  8.  
  9. function getXml() 
  10. $xml = <<<EOD 
  11. <methodResponse> 
  12. <fault> 
  13. <value> 
  14. <struct> 
  15. <member> 
  16. <name>faultCode</name> 
  17. <value><int>{$this->code}</int></value> 
  18. </member> 
  19. <member> 
  20. <name>faultString</name> 
  21. <value><string>{$this->message}</string></value> 
  22. </member> 
  23. </struct> 
  24. </value> 
  25. </fault> 
  26. </methodResponse> 
  27.  
  28. EOD; 
  29. return $xml;