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

		// set the errors object to match JsonApi's expectations
		$this->controller->set('title', $error->title());
		$this->controller->set('validationErrors', $error->validationErrors());
		$this->controller->set('status', $error->status());
		$this->controller->set('error', $error);

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

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

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

		// set the errors object to match JsonApi's expectations
		$this->controller->set('title', $error->title());
		$this->controller->set('validationErrors', $error->validationErrors());
		$this->controller->set('status', $error->status());
		$this->controller->set('error', $error);

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

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

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

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