From: Hypolite Petovan Date: Fri, 24 Nov 2017 04:40:54 +0000 (-0500) Subject: Add HTTPException class files X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b41bf77ec8187b6c7bdc5229510032662901e416;p=friendica.git Add HTTPException class files --- diff --git a/src/Network/HTTPException.php b/src/Network/HTTPException.php new file mode 100644 index 0000000000..eec4a9ced2 --- /dev/null +++ b/src/Network/HTTPException.php @@ -0,0 +1,23 @@ +httpdesc == "") { + $this->httpdesc = preg_replace("|([a-z])([A-Z])|",'$1 $2', str_replace("Exception","",get_class($this))); + } + parent::__construct($message, $code, $previous); + } +} diff --git a/src/Network/HTTPException/BadGatewayException.php b/src/Network/HTTPException/BadGatewayException.php new file mode 100644 index 0000000000..1bb8b29e98 --- /dev/null +++ b/src/Network/HTTPException/BadGatewayException.php @@ -0,0 +1,10 @@ +