forked from blallo/rss-bridge
[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…
Reference in a new issue