mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-30 14:49:53 +02:00
exception: Remove HttpException class
This class served no particular purpose (other than adding a layer on top of Exception).
This commit is contained in:
parent
dbffbd4d4e
commit
c6a7b9ac64
5 changed files with 6 additions and 16 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue