Zend\XmlRpc\Fault
XMLRPC Faults
Container for XMLRPC faults, containing both a code and a message;
additionally, has methods for determining if an XML response is an XMLRPC
fault, as well as generating the XML for an XMLRPC fault response.
To allow method chaining, you may only use the factory
to instantiate a Zend\XmlRpc\Server\Fault.
Synopsis
class Fault
{
- // members
- protected int $code;
- protected string $encoding;
- protected string $message;
- protected array $internal;
- // methods
- public void __construct()
- public Fault setCode()
- public int getCode()
- public Fault setMessage()
- public string getMessage()
- public Fault setEncoding()
- public string getEncoding()
- public bool loadXml()
- public static bool isFault()
- public string saveXml()
- public string __toString()
Hierarchy
Extended by
Members
protected
- $code
—
int
Fault code - $encoding
—
string
Fault character encoding - $internal
—
array
Internal fault codes => messages - $message
—
string
Fault message
Methods
public
- __construct() — Constructor
- __toString() — Return XML fault response
- getCode() — Return fault code
- getEncoding() — Retrieve current fault encoding
- getMessage() — Retrieve fault message
- isFault() — Determine if an XML response is an XMLRPC fault
- loadXml() — Load an XMLRPC fault from XML
- saveXml() — Serialize fault to XML
- setCode() — Set the fault code
- setEncoding() — Set encoding to use in fault response
- setMessage() — Retrieve fault message