ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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.
 message ()
 message
 getFault ()
 getFault
 getActor ()
 getActor
 getDetail ()
 getDetail
- Public Member Functions inherited from PEAR_Error
 PEAR_Error ($message= 'unknown error', $code=null, $mode=null, $options=null, $userinfo=null)
 PEAR_Error constructor.
 getMode ()
 Get the error mode from an error object.
 getCallback ()
 Get the callback function/method from an error object.
 getMessage ()
 Get the error message from an error object.
 getCode ()
 Get error code from an error object.
 getType ()
 Get the name of this error/exception.
 getUserInfo ()
 Get additional user-supplied information.
 getDebugInfo ()
 Get additional debug information supplied by the application.
 getBacktrace ($frame=null)
 Get the call backtrace from where the error was generated.
 addUserInfo ($info)
 __toString ()
 toString ()
 Make a string representation of this object.

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

ilBMFFault::getActor ( )

getActor

returns the SOAP actor for the fault

Returns
string public

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

References PEAR_Error\$error_message_prefix.

ilBMFFault::getDetail ( )

getDetail

returns the fault detail

Returns
string public

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

References PEAR_Error\$userinfo.

{
}
ilBMFFault::getFault ( )

getFault

returns a simple native php array containing the fault data

Returns
array public

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

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

{
global $SOAP_OBJECT_STRUCT;
if ($SOAP_OBJECT_STRUCT) {
$fault =& new stdClass();
$fault->faultcode = $this->code;
$fault->faultstring = $this->message;
$fault->faultactor = $this->error_message_prefix;
$fault->detail = $this->userinfo;
return $fault;
}
return array(
'faultcode' => $this->code,
'faultstring' => $this->message,
'faultactor' => $this->error_message_prefix,
'detail' => $this->userinfo
);
}

+ Here is the call graph for this function:

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.

References PEAR_Error\$mode, $options, and PEAR_Error\PEAR_Error().

{
parent::PEAR_Error($faultstring, $faultcode, $mode, $options, $detail);
if ($faultactor) $this->error_message_prefix = $faultactor;
}

+ Here is the call graph for this function:

ilBMFFault::message ( )

message

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

Returns
SOAP_Message public

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

References SOAP_ENVELOP.

Referenced by getFault().

{
$msg =& new ilBMFBase();
$params = array();
$params[] =& new ilBMFValue('faultcode', 'QName', 'SOAP-ENV:'.$this->code);
$params[] =& new ilBMFValue('faultstring', 'string', $this->message);
$params[] =& new ilBMFValue('faultactor', 'anyURI', $this->error_message_prefix);
if (isset($this->backtrace)) {
$params[] =& new ilBMFValue('detail', 'string', $this->backtrace);
} else {
$params[] =& new ilBMFValue('detail', 'string', $this->userinfo);
}
$methodValue =& new ilBMFValue('{'.SOAP_ENVELOP.'}Fault', 'Struct', $params);
$headers = NULL;
return $msg->_makeEnvelope($methodValue, $headers);
}

+ Here is the caller graph for this function:


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