mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-02-16 23:29:56 +03:00
[Bridge] Add specialized error handling functions
This commit is contained in:
parent
d3cebe9c65
commit
73a1bcf3d6
1 changed files with 8 additions and 0 deletions
|
@ -30,6 +30,14 @@ abstract class BridgeAbstract implements BridgeInterface{
|
|||
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 mixed
|
||||
|
|
Loading…
Add table
Reference in a new issue