1 | <?php |
||
17 | trait JSONHttpError { |
||
18 | |||
19 | |||
20 | /** |
||
21 | * @param \Exception $exception the message that is returned taken from the |
||
22 | * exception |
||
23 | * @param int $code the http error code |
||
24 | * @return \OCP\AppFramework\Http\JSONResponse |
||
25 | */ |
||
26 | public function error(\Exception $exception, $code) { |
||
29 | |||
30 | |||
31 | } |