public function renderResource($resource) { $exception = new Exception('The API cannot handle this data structure.'); return $this->renderException($exception->getMessage(), $exception); }