Lib/Error/SerializerExceptionRenderer.php
protected function renderValidationSerializerException(ValidationBaseSerializerException $error) {
		if ($this->isJsonApiRequest()) {
			return $this->renderValidationSerializerAsJsonApi($error);
		}

		if ($this->isJsonRequest()) {
			return $this->renderValidationSerializerAsJson($error);
		}

		return $this->defaultValidationSerializerRender($error);
	}
protected function renderValidationSerializerException(ValidationBaseSerializerException $error) {
		if ($this->isJsonApiRequest()) {
			return $this->renderValidationSerializerAsJsonApi($error);
		}

		if ($this->isJsonRequest()) {
			return $this->renderValidationSerializerAsJson($error);
		}

		return $this->defaultValidationSerializerRender($error);
	}
render exceptions of type ValidationBaseSerializerException

@param ValidationBaseSerializerException $error the ValidationBaseSerializerException error to render
@return void