exception: Remove HttpException class

This class served no particular purpose (other than adding a
layer on top of Exception).
This commit is contained in:
logmanoriginal 2018-11-18 16:53:21 +01:00
parent dbffbd4d4e
commit c6a7b9ac64
5 changed files with 6 additions and 16 deletions

View file

@ -14,14 +14,14 @@
/**
* Throws an exception when called.
*
* @throws \HttpException when called
* @throws \Exception when called
* @param string $message The error message
* @param int $code The HTTP error code
* @link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes List of HTTP
* status codes
*/
function returnError($message, $code){
throw new \HttpException($message, $code);
throw new \Exception($message, $code);
}
/**