Lib/Error/SerializerExceptionRenderer.php
protected function defaultSerializerRender(BaseSerializerException $error) {
		$this->controller->response->statusCode($error->status());

		// set the errors object to match JsonApi's expectations
		$this->controller->set('id', $error->id());
		$this->controller->set('href', $error->href());
		$this->controller->set('status', $error->status());
		$this->controller->set('code', $error->code());
		$this->controller->set('title', $error->title());
		$this->controller->set('detail', $error->detail());
		$this->controller->set('links', $error->links());
		$this->controller->set('paths', $error->paths());
		$this->controller->set('error', $error);

		$this->controller->set('url', $this->controller->request->here());

		if (empty($template)) {
			$template = "SerializersErrors./Errors/serializer_exception";
		}

		$this->controller->render($template);
		$this->controller->afterFilter();
		return $this->controller->response->send();
	}
protected function defaultSerializerRender(BaseSerializerException $error) {
		$this->controller->response->statusCode($error->status());

		// set the errors object to match JsonApi's expectations
		$this->controller->set('id', $error->id());
		$this->controller->set('href', $error->href());
		$this->controller->set('status', $error->status());
		$this->controller->set('code', $error->code());
		$this->controller->set('title', $error->title());
		$this->controller->set('detail', $error->detail());
		$this->controller->set('links', $error->links());
		$this->controller->set('paths', $error->paths());
		$this->controller->set('error', $error);

		$this->controller->set('url', $this->controller->request->here());

		if (empty($template)) {
			$template = "SerializersErrors./Errors/serializer_exception";
		}

		$this->controller->render($template);
		$this->controller->afterFilter();
		return $this->controller->response->send();
	}
render the BaseSerializerException in the general case

@param BaseSerializerException $error an instance of BaseSerializerException
@return void