Example #1
0
 /**
  * @param $http_status_code
  * HTTP status code message as predefined.
  * @param $error
  * A single error code.
  * @param $error_description
  * (optional) A human-readable text providing additional information,
  * used to assist in the understanding and resolution of the error
  * occurred.
  */
 public function __construct($http_status_code, $error, $error_description = NULL)
 {
     parent::__construct($error);
     $this->httpCode = $http_status_code;
     $this->errorData['error'] = $error;
     if ($error_description) {
         $this->errorData['error_description'] = $error_description;
     }
 }