12 namespace fpoirotte\XRL;
25 'NOT_WELL_FORMED' => array(
27 'msg' =>
'parse error. not well formed',
29 'UNSUPPORTED_ENCODING' => array(
31 'msg' =>
'parse error. unsupported encoding',
33 'INVALID_CHARACTER' => array(
35 'msg' =>
'parse error. invalid character for encoding',
37 'INVALID_XML_RPC' => array(
39 'msg' =>
'server error. invalid xml-rpc. not conforming to spec',
41 'METHOD_NOT_FOUND' => array(
43 'msg' =>
'server error. requested method not found',
45 'INVALID_PARAMETERS' => array(
47 'msg' =>
'server error. invalid method parameters',
49 'INTERNAL_ERROR' => array(
51 'msg' =>
'server error. internal xml-rpc error',
53 'APPLICATION_ERROR' => array(
55 'msg' =>
'application error',
57 'SYSTEM_ERROR' => array(
59 'msg' =>
'system error',
61 'TRANSPORT_ERROR' => array(
63 'msg' =>
'transport error',
127 if (!isset(self::$faults[$fault])) {
128 throw new \InvalidArgumentException(
'Unknown interoperability fault');
130 $params = self::$faults[$fault];
131 return new \fpoirotte\XRL\Exception($params[
'msg'], $params[
'code'], $exc);
Definitions of interoperability faults.
static $faults
Parameters for interoperability faults.
An exception that is used to represent XML-RPC errors.
const APPLICATION_ERROR
Alias for the corresponding interoperability fault.
const TRANSPORT_ERROR
Alias for the corresponding interoperability fault.
const UNSUPPORTED_ENCODING
Alias for the corresponding interoperability fault.
const INVALID_CHARACTER
Alias for the corresponding interoperability fault.
const INVALID_PARAMETERS
Alias for the corresponding interoperability fault.
const INVALID_XML_RPC
Alias for the corresponding interoperability fault.
const INTERNAL_ERROR
Alias for the corresponding interoperability fault.
const NOT_WELL_FORMED
Alias for the corresponding interoperability fault.
const METHOD_NOT_FOUND
Alias for the corresponding interoperability fault.
const SYSTEM_ERROR
Alias for the corresponding interoperability fault.