XML_RPC2
[ class tree: XML_RPC2 ] [ index: XML_RPC2 ] [ all elements ]

Class: XML_RPC2_FaultException

Source Location: /XML_RPC2-1.1.2/XML/RPC2/Exception.php

Class Overview

Exception
   |
   --XML_RPC2_Exception
      |
      --XML_RPC2_FaultException

XML_RPC2_FaultException signals a XML-RPC response that contains a fault element instead of a regular params element.


Author(s):

Copyright:

  • 2004-2006 Sergio Carvalho

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 210]
XML_RPC2_FaultException signals a XML-RPC response that contains a fault element instead of a regular params element.


[ Top ]


Class Variables

$faultCode =  null

[line 220]

Fault code (in the response body)
  • Access: protected

Type:   string


[ Top ]



Method Detail

__construct (Constructor)   [line 230]

XML_RPC2_FaultException __construct( string $messageString, string $faultCode)

Construct a new XML_RPC2_FaultException with a given message string and fault code

Parameters:

string   $messageString   —  The message string, corresponding to the faultString present in the response body
string   $faultCode   —  The fault code, corresponding to the faultCode in the response body

[ Top ]

createFromDecode   [line 273]

object a createFromDecode( string $xml)

Create a XML_RPC2_FaultException by decoding the corresponding xml string
  • Return: XML_RPC2_FaultException
  • Access: public

Parameters:

string   $xml   — 

[ Top ]

getFaultCode   [line 244]

string getFaultCode( )

FaultCode getter
  • Return: fault code
  • Access: public

[ Top ]

getFaultString   [line 259]

string getFaultString( )

FaultString getter

This is an alias to getMessage() in order to respect XML-RPC nomenclature for faults

  • Return: fault code
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:56:38 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.