Docs For Class Zend_XmlRpc_Server_Fault

## Class Zend_XmlRpc_Server_Fault

Description

XMLRPC Server Faults

Encapsulates an exception for use as an XMLRPC fault response. Valid exception classes that may be used for generating the fault code and fault string can be attached using attachFaultException(); all others use a generic '404 Unknown error' response.

You may also attach fault observers, which would allow you to monitor particular fault cases; this is done via attachObserver(). Observers need only implement a static 'observe' method.

To allow method chaining, you may use the getInstance() factory to instantiate a Zend_XmlRpc_Server_Fault.

- license: Zend Framework License version 1.0
- copyright: Copyright (c) 2005-2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/XmlRpc/Server/Fault.php (line 48)

    Zend_XmlRpc_Fault
       |
       --Zend_XmlRpc_Server_Fault

Variable Summary
static array $_faultExceptionClasses
static array $_observers
Exception $_exception
Method Summary
static void attachFaultException (string|array $classes)
static boolean attachObserver (string $class)
static void detachFaultException (string|array $classes)
static boolean detachObserver (string $class)
static Zend_XmlRpc_Server_Fault getInstance ( $e)
Zend_XmlRpc_Server_Fault __construct ( $e)
Variables
static array $_faultExceptionClasses = array('Zend_XmlRpc_Server_Exception' => true) (line 58)

- var: Array of exception classes that may define xmlrpc faults
- access: protected

static array $_observers = array() (line 63)

- var: Array of fault observers
- access: protected

Exception $_exception (line 53)

- access: protected

#### Inherited Variables

Inherited from Zend_XmlRpc_Fault

> Zend_XmlRpc_Fault::$_code
> Zend_XmlRpc_Fault::$_internal
> Zend_XmlRpc_Fault::$_message

Methods
static method attachFaultException (line 110)

Attach valid exceptions that can be used to define xmlrpc faults

- access: public

static void attachFaultException (string|array $classes)

- string|array $classes: Class name or array of class names

static method attachObserver (line 154)

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.

- access: public

static boolean attachObserver (string $class)

- string $class

static method detachFaultException (line 129)

Detach fault exception classes

- access: public

static void detachFaultException (string|array $classes)

- string|array $classes: Class name or array of class names

static method detachObserver (line 176)

Detach an observer

- access: public

static boolean detachObserver (string $class)

- string $class

static method getInstance (line 99)

Return Zend_XmlRpc_Server_Fault instance

- access: public

static Zend_XmlRpc_Server_Fault getInstance ( $e)

- Exception $e

Constructor __construct (line 71)

Constructor

- access: public

Zend_XmlRpc_Server_Fault __construct ( $e)

- Exception $e

Redefinition of:

Zend_XmlRpc_Fault::__construct()
  Constructor

#### Inherited Methods

Inherited From Zend_XmlRpc_Fault

> Zend_XmlRpc_Fault::__construct()
> Zend_XmlRpc_Fault::getCode()
> Zend_XmlRpc_Fault::getMessage()
> Zend_XmlRpc_Fault::isFault()
> Zend_XmlRpc_Fault::loadXml()
> Zend_XmlRpc_Fault::setCode()
> Zend_XmlRpc_Fault::setMessage()
> Zend_XmlRpc_Fault::__toString()

Documentation generated on Sun, 29 Oct 2006 21:27:56 -0600 by phpDocumentor 1.3.0RC6