XRL  2.0.0
Simple XML-RPC Library (both client and server)
fpoirotte\XRL\Faults Class Reference

Definitions of interoperability faults. More...

Static Public Member Functions

static get ($fault,\Exception $exc=null)
 

Public Attributes

const APPLICATION_ERROR = 'APPLICATION_ERROR'
 Alias for the corresponding interoperability fault.
 
const INTERNAL_ERROR = 'INTERNAL_ERROR'
 Alias for the corresponding interoperability fault.
 
const INVALID_CHARACTER = 'INVALID_CHARACTER'
 Alias for the corresponding interoperability fault.
 
const INVALID_PARAMETERS = 'INVALID_PARAMETERS'
 Alias for the corresponding interoperability fault.
 
const INVALID_XML_RPC = 'INVALID_XML_RPC'
 Alias for the corresponding interoperability fault.
 
const METHOD_NOT_FOUND = 'METHOD_NOT_FOUND'
 Alias for the corresponding interoperability fault.
 
const NOT_WELL_FORMED = 'NOT_WELL_FORMED'
 Alias for the corresponding interoperability fault.
 
const SYSTEM_ERROR = 'SYSTEM_ERROR'
 Alias for the corresponding interoperability fault.
 
const TRANSPORT_ERROR = 'TRANSPORT_ERROR'
 Alias for the corresponding interoperability fault.
 
const UNSUPPORTED_ENCODING = 'UNSUPPORTED_ENCODING'
 Alias for the corresponding interoperability fault.
 

Static Protected Attributes

static $faults
 Parameters for interoperability faults.
 

Private Member Functions

 __construct ()
 

Detailed Description

Definitions of interoperability faults.

See Also
http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php

Definition at line 21 of file Faults.php.

Constructor & Destructor Documentation

fpoirotte\XRL\Faults::__construct ( )
finalprivate

Dummy constructor that prevents creation of instances.

Definition at line 102 of file Faults.php.

Member Function Documentation

static fpoirotte\XRL\Faults::get (   $fault,
\Exception  $exc = null 
)
static

Retrieve interoperability fault.

Parameters
string$faultFault identifier. Use the constants defined in this class to refer to faults.
Exception$excOriginal exception.
Return values
ExceptionNew exception representing the interoperability fault.
Exceptions
InvalidArgumentExceptionThe given interoperability fault could not be found.

Definition at line 125 of file Faults.php.


The documentation for this class was generated from the following file: