Back to index

d-push  2.0
Public Member Functions | Protected Attributes | Private Attributes
SyncObjectBrokenException Class Reference
Inheritance diagram for SyncObjectBrokenException:
Inheritance graph
[legend]
Collaboration diagram for SyncObjectBrokenException:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GetSyncObject ()
 Returns the SyncObject which caused this Exception (if set)
 SetSyncObject ($syncobject)
 Sets the SyncObject which caused the exception so it can be later retrieved.
 ZPushException ($message="", $code=0, $previous=NULL, $logLevel=false)
 getHTTPCodeString ()
 getHTTPHeaders ()
 showLegalNotice ()

Protected Attributes

 $defaultLogLevel = LOGLEVEL_WARN
 $httpReturnCode = HTTP_CODE_500
 $httpReturnMessage = "Internal Server Error"
 $httpHeaders = array()
 $showLegal = true

Private Attributes

 $syncObject

Detailed Description

Definition at line 45 of file syncobjectbrokenexception.php.


Member Function Documentation

Definition at line 62 of file zpushexception.php.

                                        {
        return $this->httpReturnCode . " ". $this->httpReturnMessage;
    }

Definition at line 66 of file zpushexception.php.

                                     {
        return $this->httpHeaders;
    }

Returns the SyncObject which caused this Exception (if set)

public

Returns:
SyncObject

Definition at line 55 of file syncobjectbrokenexception.php.

                                    {
        return isset($this->syncObject) ? $this->syncObject : false;
    }

Here is the caller graph for this function:

Sets the SyncObject which caused the exception so it can be later retrieved.

Parameters:
SyncObject$syncobjectpublic
Returns:
boolean

Definition at line 67 of file syncobjectbrokenexception.php.

                                               {
        $this->syncObject = $syncobject;
        return true;
    }

Definition at line 70 of file zpushexception.php.

                                      {
        return $this->showLegal;
    }
ZPushException::ZPushException ( message = "",
code = 0,
previous = NULL,
logLevel = false 
) [inherited]

Definition at line 51 of file zpushexception.php.

                                                                                                  {
        if (! $message)
            $message = $this->httpReturnMessage;

        if (!$logLevel)
            $logLevel = $this->defaultLogLevel;

        ZLog::Write($logLevel, get_class($this) .': '. $message . ' - code: '.$code);
        parent::__construct($message, (int) $code);
    }

Here is the call graph for this function:


Member Data Documentation

Reimplemented from ZPushException.

Definition at line 46 of file syncobjectbrokenexception.php.

ZPushException::$httpHeaders = array() [protected, inherited]

Reimplemented in AuthenticationRequiredException.

Definition at line 48 of file zpushexception.php.

Reimplemented in ProvisioningRequiredException, and AuthenticationRequiredException.

Definition at line 46 of file zpushexception.php.

ZPushException::$httpReturnMessage = "Internal Server Error" [protected, inherited]

Reimplemented in ProvisioningRequiredException, and AuthenticationRequiredException.

Definition at line 47 of file zpushexception.php.

ZPushException::$showLegal = true [protected, inherited]

Reimplemented in AuthenticationRequiredException, and HTTPReturnCodeException.

Definition at line 49 of file zpushexception.php.

Definition at line 47 of file syncobjectbrokenexception.php.


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