<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
*/
abstract class HTTPException extends Exception
{
- public $httpdesc = '';
- public $explanation = '';
+ protected $httpdesc = '';
+ protected $explanation = '';
public function __construct($message = '', Exception $previous = null)
{
parent::__construct($message, $this->code, $previous);
}
+
+ public function getDescription()
+ {
+ return $this->httpdesc;
+ }
+
+ public function getExplanation()
+ {
+ return $this->explanation;
+ }
}