ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilBMFFault Class Reference
+ Inheritance diagram for ilBMFFault:
+ Collaboration diagram for ilBMFFault:

Public Member Functions

 ilBMFFault ($faultstring='unknown error', $faultcode='Client', $faultactor=NULL, $detail=NULL, $mode=null, $options=null)
 Constructor. More...
 
 message ()
 message More...
 
 getFault ()
 getFault More...
 
 getActor ()
 getActor More...
 
 getDetail ()
 getDetail More...
 
- Public Member Functions inherited from PEAR_Error
 PEAR_Error ($message='unknown error', $code=null, $mode=null, $options=null, $userinfo=null)
 PEAR_Error constructor. More...
 
 getMode ()
 Get the error mode from an error object. More...
 
 getCallback ()
 Get the callback function/method from an error object. More...
 
 getMessage ()
 Get the error message from an error object. More...
 
 getCode ()
 Get error code from an error object. More...
 
 getType ()
 Get the name of this error/exception. More...
 
 getUserInfo ()
 Get additional user-supplied information. More...
 
 getDebugInfo ()
 Get additional debug information supplied by the application. More...
 
 getBacktrace ($frame=null)
 Get the call backtrace from where the error was generated. More...
 
 addUserInfo ($info)
 
 __toString ()
 
 toString ()
 Make a string representation of this object. More...
 

Additional Inherited Members

- Data Fields inherited from PEAR_Error
 $error_message_prefix = ''
 
 $mode = PEAR_ERROR_RETURN
 
 $level = E_USER_NOTICE
 
 $code = -1
 
 $message = ''
 
 $userinfo = ''
 
 $backtrace = null
 

Detailed Description

Definition at line 37 of file class.ilBMFFault.php.

Member Function Documentation

◆ getActor()

ilBMFFault::getActor ( )

getActor

returns the SOAP actor for the fault

Returns
string @access public

Definition at line 117 of file class.ilBMFFault.php.

118 {
120 }
$error_message_prefix
Definition: PEAR.php:830

References PEAR_Error\$error_message_prefix.

◆ getDetail()

ilBMFFault::getDetail ( )

getDetail

returns the fault detail

Returns
string @access public

Definition at line 130 of file class.ilBMFFault.php.

131 {
132 return $this->userinfo;
133 }

References PEAR_Error\$userinfo.

◆ getFault()

ilBMFFault::getFault ( )

getFault

returns a simple native php array containing the fault data

Returns
array @access public

Definition at line 90 of file class.ilBMFFault.php.

91 {
92 global $SOAP_OBJECT_STRUCT;
93 if ($SOAP_OBJECT_STRUCT) {
94 $fault =& new stdClass();
95 $fault->faultcode = $this->code;
96 $fault->faultstring = $this->message;
97 $fault->faultactor = $this->error_message_prefix;
98 $fault->detail = $this->userinfo;
99 return $fault;
100 }
101 return array(
102 'faultcode' => $this->code,
103 'faultstring' => $this->message,
104 'faultactor' => $this->error_message_prefix,
105 'detail' => $this->userinfo
106 );
107 }
message()
message

References PEAR_Error\$code, PEAR_Error\$error_message_prefix, PEAR_Error\$message, PEAR_Error\$userinfo, and message().

+ Here is the call graph for this function:

◆ ilBMFFault()

ilBMFFault::ilBMFFault (   $faultstring = 'unknown error',
  $faultcode = 'Client',
  $faultactor = NULL,
  $detail = NULL,
  $mode = null,
  $options = null 
)

Constructor.

Parameters
stringmessage string for fault
mixedthe faultcode
mixedsee PEAR::ERROR
mixedsee PEAR::ERROR
arraythe userinfo array is used to pass in the SOAP actor and detail for the fault

Definition at line 50 of file class.ilBMFFault.php.

51 {
52 parent::PEAR_Error($faultstring, $faultcode, $mode, $options, $detail);
53 if ($faultactor) $this->error_message_prefix = $faultactor;
54 }
if(!is_array($argv)) $options

References PEAR_Error\$mode, and $options.

◆ message()

ilBMFFault::message ( )

message

returns a SOAP_Message class that can be sent as a server response

Returns
SOAP_Message @access public

Definition at line 64 of file class.ilBMFFault.php.

65 {
66 $msg =& new ilBMFBase();
67 $params = array();
68 $params[] =& new ilBMFValue('faultcode', 'QName', 'SOAP-ENV:'.$this->code);
69 $params[] =& new ilBMFValue('faultstring', 'string', $this->message);
70 $params[] =& new ilBMFValue('faultactor', 'anyURI', $this->error_message_prefix);
71 if (isset($this->backtrace)) {
72 $params[] =& new ilBMFValue('detail', 'string', $this->backtrace);
73 } else {
74 $params[] =& new ilBMFValue('detail', 'string', $this->userinfo);
75 }
76
77 $methodValue =& new ilBMFValue('{'.SOAP_ENVELOP.'}Fault', 'Struct', $params);
78 $headers = NULL;
79 return $msg->_makeEnvelope($methodValue, $headers);
80 }
const SOAP_ENVELOP
$params
Definition: example_049.php:96

References $params, message(), and SOAP_ENVELOP.

Referenced by getFault(), and message().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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