public function ul($class = 'warn') {
        if (count($this->errors) == 0)
            return '';

        $out = "<ul class='$class'>";
        foreach ($this->errors as $error)
            $out .= "<li>" . implode("</li><li>", $error) . "</li>";
        $out .= "</ul>";

        return $out;
    }