Back to index

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

List of all members.

Public Member Functions

 ZPushException ($message="", $code=0, $previous=NULL, $logLevel=false)
 getHTTPCodeString ()
 getHTTPHeaders ()
 showLegalNotice ()

Protected Attributes

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

Detailed Description

Definition at line 44 of file zpushexception.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;
    }

Definition at line 70 of file zpushexception.php.

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

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

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

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]

Reimplemented in ProvisioningRequiredException, and AuthenticationRequiredException.

Definition at line 47 of file zpushexception.php.

ZPushException::$showLegal = true [protected]

Reimplemented in AuthenticationRequiredException, and HTTPReturnCodeException.

Definition at line 49 of file zpushexception.php.


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