IXR_Error

IXR_Error.

Defined (1)

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

/wp-includes/IXR/class-IXR-error.php  
  1. class IXR_Error 
  2. var $code; 
  3. var $message; 
  4.  
  5. /** 
  6. * PHP5 constructor. 
  7. */ 
  8. function __construct( $code, $message ) 
  9. $this->code = $code; 
  10. $this->message = htmlspecialchars($message); 
  11.  
  12. /** 
  13. * PHP4 constructor. 
  14. */ 
  15. public function IXR_Error( $code, $message ) { 
  16. self::__construct( $code, $message ); 
  17.  
  18. function getXml() 
  19. $xml = <<<EOD 
  20. <methodResponse> 
  21. <fault> 
  22. <value> 
  23. <struct> 
  24. <member> 
  25. <name>faultCode</name> 
  26. <value><int>{$this->code}</int></value> 
  27. </member> 
  28. <member> 
  29. <name>faultString</name> 
  30. <value><string>{$this->message}</string></value> 
  31. </member> 
  32. </struct> 
  33. </value> 
  34. </fault> 
  35. </methodResponse> 
  36.  
  37. EOD; 
  38. return $xml;