original_string: protected function renderApiError(ApiException $exception):JsonResponse
      {
          return app('responder.error')
              ->setError($exception->getErrorCode(), $exception->getMessage())
              ->addData($exception->getData() ?: [])
              ->respond($exception->getStatusCode());
      }
code: protected function renderApiError(ApiException $exception):JsonResponse
      {
          return app('responder.error')
              ->setError($exception->getErrorCode(), $exception->getMessage())
              ->addData($exception->getData() ?: [])
              ->respond($exception->getStatusCode());
      }
code_tokens: protected function renderApiError ( ApiException $ exception ) : JsonResponse { return app ( 'responder.error' ) -> setError ( $ exception -> getErrorCode ( ) , $ exception -> getMessage ( ) ) -> addData ( $ exception -> getData ( ) ? : [ ] ) -> respond ( $ exception -> getStatusCode ( ) ) ; }
docstring: Renders any API exception into a JSON error response.
  
  @param  ApiException $exception
  @return JsonResponse
docstring_tokens: Renders any API exception into a JSON error response .