mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
[Bridge] Add specialized error handling functions
This commit is contained in:
parent
d3cebe9c65
commit
73a1bcf3d6
@ -30,6 +30,14 @@ abstract class BridgeAbstract implements BridgeInterface{
|
|||||||
throw new \HttpException($message, $code);
|
throw new \HttpException($message, $code);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function returnClientError($message){
|
||||||
|
$this->returnError($message, 400);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function returnServerError($message){
|
||||||
|
$this->returnError($message, 500);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return datas stored in the bridge
|
* Return datas stored in the bridge
|
||||||
* @return mixed
|
* @return mixed
|
||||||
|
Loading…
Reference in New Issue
Block a user