X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FNetwork%2FHTTPException.php;h=7ef1ca9828aca0e93147106f2f12d19cc716e68d;hb=db82bdfc44b09e7dfa872fb7ccca2b9571c38083;hp=d6698605d0a08dc1a57d4cba28fd378a30ab13fa;hpb=054c301ef0345c4ff9f35cfd08717757eab17b9d;p=friendica.git diff --git a/src/Network/HTTPException.php b/src/Network/HTTPException.php index d6698605d0..7ef1ca9828 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; } }