X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNetwork%2FHTTPException.php;h=f59ff547c9ba457770ce614ae1d1a04817687d9e;hb=37405567c1a71a805b722ae56604be7ee89251ab;hp=b6be886b35f25bf396110610cb16c776251f8fa8;hpb=e80d68ba53776bed047d897f52db7e25b35a479d;p=friendica.git diff --git a/src/Network/HTTPException.php b/src/Network/HTTPException.php index b6be886b35..f59ff547c9 100644 --- a/src/Network/HTTPException.php +++ b/src/Network/HTTPException.php @@ -1,6 +1,6 @@ code, $previous); + } - if (empty($this->httpdesc)) { - $classname = str_replace('Exception', '', str_replace('Friendica\Network\HTTPException\\', '', get_class($this))); - $this->httpdesc = preg_replace("|([a-z])([A-Z])|",'$1 $2', $classname); - } + public function getDescription() + { + return $this->httpdesc; + } + + public function getExplanation() + { + return $this->explanation; } }