Flugg\Responder\Exceptions\Handler::render PHP Метод

render() публичный Метод

Render an exception into an HTTP response.
public render ( Illuminate\Http\Request $request, Exception $exception ) : Illuminate\Http\Response | Illuminate\Http\JsonResponse
$request Illuminate\Http\Request
$exception Exception
Результат Illuminate\Http\Response | Illuminate\Http\JsonResponse
    public function render($request, Exception $exception)
    {
        $this->transformException($exception);
        if ($exception instanceof ApiException) {
            return $this->renderApiError($exception);
        }
        return parent::render($request, $exception);
    }
Handler