system/Validation/Validation.php
public function listErrors(string $template = 'list'): string
	{
		if (! array_key_exists($template, $this->config->templates))
		{
			throw ValidationException::forInvalidTemplate($template);
		}

		return $this->view->setVar('errors', $this->getErrors())
						  ->render($this->config->templates[$template]);
	}
public function listErrors(string $template = 'list'): string
	{
		if (! array_key_exists($template, $this->config->templates))
		{
			throw ValidationException::forInvalidTemplate($template);
		}

		return $this->view->setVar('errors', $this->getErrors())
						  ->render($this->config->templates[$template]);
	}
Returns the rendered HTML of the errors as defined in $template.

@param string $template

@return string