Back to index

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

List of all members.

Public Member Functions

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

Protected Attributes

 $defaultLogLevel = LOGLEVEL_ERROR
 $showLegal = false
 $httpReturnCode = HTTP_CODE_500
 $httpReturnMessage = "Internal Server Error"
 $httpHeaders = array()

Detailed Description

Definition at line 45 of file httpreturncodeexception.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;
    }
HTTPReturnCodeException::HTTPReturnCodeException ( message = "",
code = 0,
previous = NULL,
logLevel = false 
)

Definition at line 49 of file httpreturncodeexception.php.

                                                                                                           {
        if ($code)
            $this->httpReturnCode = $code;
        parent::__construct($message, (int) $code, $previous, $logLevel);
    }

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.

Reimplemented in ProvisioningRequiredException, and AuthenticationRequiredException.

Definition at line 46 of file httpreturncodeexception.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.

Reimplemented from ZPushException.

Reimplemented in AuthenticationRequiredException.

Definition at line 47 of file httpreturncodeexception.php.


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