[Bridge] Add specialized error handling functions

This commit is contained in:
logmanoriginal 2016-08-17 13:58:55 +02:00
parent d3cebe9c65
commit 73a1bcf3d6

View file

@ -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