Zend Framework  1.12
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Zend_XmlRpc_Server_Fault Class Reference

Public Member Functions

 __construct (Exception $e)
 Constructor.
 
 getException ()
 Retrieve the exception.
 
- Public Member Functions inherited from Zend_XmlRpc_Fault
 __construct ($code=404, $message= '')
 Constructor.
 
 setCode ($code)
 Set the fault code.
 
 getCode ()
 Return fault code.
 
 setMessage ($message)
 Retrieve fault message.
 
 getMessage ()
 Retrieve fault message.
 
 setEncoding ($encoding)
 Set encoding to use in fault response.
 
 getEncoding ()
 Retrieve current fault encoding.
 
 loadXml ($fault)
 Load an XMLRPC fault from XML.
 
 saveXml ()
 Serialize fault to XML.
 
 __toString ()
 Return XML fault response.
 

Static Public Member Functions

static getInstance (Exception $e)
 Return Zend_XmlRpc_Server_Fault instance.
 
static attachFaultException ($classes)
 Attach valid exceptions that can be used to define xmlrpc faults.
 
static detachFaultException ($classes)
 Detach fault exception classes.
 
static attachObserver ($class)
 Attach an observer class.
 
static detachObserver ($class)
 Detach an observer.
 
- Static Public Member Functions inherited from Zend_XmlRpc_Fault
static isFault ($xml)
 Determine if an XML response is an XMLRPC fault.
 

Protected Attributes

 $_exception
 
- Protected Attributes inherited from Zend_XmlRpc_Fault
 $_code
 
 $_encoding = 'UTF-8'
 
 $_message
 
 $_internal
 

Static Protected Attributes

static $_faultExceptionClasses = array('Zend_XmlRpc_Server_Exception' => true)
 
static $_observers = array()
 

Constructor & Destructor Documentation

__construct ( Exception  $e)

Constructor.

Parameters
Exception$e
Returns
Zend_XmlRpc_Server_Fault

Member Function Documentation

static attachFaultException (   $classes)
static

Attach valid exceptions that can be used to define xmlrpc faults.

Parameters
string | array$classesClass name or array of class names
Returns
void
static attachObserver (   $class)
static

Attach an observer class.

Allows observation of xmlrpc server faults, thus allowing logging or mail notification of fault responses on the xmlrpc server.

Expects a valid class name; that class must have a public static method 'observe' that accepts an exception as its sole argument.

Parameters
string$class
Returns
boolean
static detachFaultException (   $classes)
static

Detach fault exception classes.

Parameters
string | array$classesClass name or array of class names
Returns
void
static detachObserver (   $class)
static

Detach an observer.

Parameters
string$class
Returns
boolean
getException ( )

Retrieve the exception.

public

Returns
Exception
static getInstance ( Exception  $e)
static

Return Zend_XmlRpc_Server_Fault instance.

Parameters
Exception$e
Returns
Zend_XmlRpc_Server_Fault

Member Data Documentation

$_exception
protected
$_faultExceptionClasses = array('Zend_XmlRpc_Server_Exception' => true)
staticprotected
$_observers = array()
staticprotected