ILIAS
release_4-3 Revision
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
Exception.php
Go to the documentation of this file.
1
<?php
2
3
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
4
5
// LICENSE AGREEMENT. If folded, press za here to unfold and read license {{{
6
40
// }}}
41
52
class
XML_RPC2_Exception
extends
Exception
53
{
54
}
55
56
/* Encoding and decoding values exceptions {{{
67
class XML_RPC2_InvalidTypeException extends XML_RPC2_Exception
68
{
69
}
70
81
class XML_RPC2_InvalidDateFormatException extends XML_RPC2_Exception
82
{
83
}
84
95
class XML_RPC2_EncodeException extends XML_RPC2_Exception
96
{
97
}
98
109
class XML_RPC2_DecodeException extends XML_RPC2_Exception
110
{
111
}
112
124
class XML_RPC2_InvalidTypeEncodeException extends XML_RPC2_Exception
125
{
126
}
127
/* }}} */
128
139
class
XML_RPC2_InvalidUriException
extends
XML_RPC2_Exception
140
{
141
}
142
153
class
XML_RPC2_InvalidPrefixException
extends
XML_RPC2_Exception
154
{
155
}
156
167
class
XML_RPC2_InvalidDebugException
extends
XML_RPC2_Exception
168
{
169
}
170
181
class
XML_RPC2_InvalidSslverifyException
extends
XML_RPC2_Exception
182
{
183
}
184
195
class
XML_RPC2_FaultException
extends
XML_RPC2_Exception
196
{
197
198
// {{{ properties
199
205
protected
$faultCode
= null;
206
207
// }}}
208
// {{{ constructor
209
215
function
__construct
($messageString,
$faultCode
)
216
{
217
parent::__construct
($messageString);
218
$this->faultCode =
$faultCode
;
219
}
220
221
// }}}
222
// {{{ getFaultCode()
223
229
public
function
getFaultCode
()
230
{
231
return
$this->faultCode
;
232
}
233
234
// }}}
235
// {{{ getFaultString()
236
244
public
function
getFaultString
()
245
{
246
return
$this->getMessage();
247
}
248
249
// }}}
250
// {{{ createFromDecode()
251
258
public
static
function
createFromDecode
($xml) {
259
require_once
'XML/RPC2/Backend/Php/Value.php'
;
260
261
// This is the only way I know of creating a new Document rooted in the provided simpleXMLFragment (needed for the xpath expressions that does not segfault sometimes
262
$xml = simplexml_load_string($xml->asXML());
263
$struct =
XML_RPC2_Backend_Php_Value::createFromDecode
($xml->value)->getNativeValue();
264
if
(!(is_array($struct) &&
265
array_key_exists(
'faultString'
, $struct) &&
266
array_key_exists(
'faultCode'
, $struct)))
throw
new
XML_RPC2_DecodeException
(
'Unable to decode XML-RPC fault payload'
);
267
268
return
new
XML_RPC2_FaultException
( $struct[
'faultString'
], $struct[
'faultCode'
] );
269
}
270
271
// }}}
272
273
}
274
285
class
XML_RPC2_UnknownMethodException
extends
XML_RPC2_Exception
286
{
287
}
288
299
class
XML_RPC2_TransportException
extends
XML_RPC2_Exception
300
{
301
}
302
313
class
XML_RPC2_ReceivedInvalidStatusCodeException
extends
XML_RPC2_TransportException
314
{
315
}
316
327
class
XML_RPC2_CurlException
extends
XML_RPC2_TransportException
328
{
329
}
330
331
?>
Services
PEAR
lib
XML
RPC2
Exception.php
Generated on Sat Apr 30 2016 19:01:00 for ILIAS by
1.8.1.2 (using
Doxyfile
)