Renders an HTML page displaying details about an error from the error log ready for emailing.
        /// <summary>
        /// Formats a complete HTML document describing the given 
        /// <see cref="Error"/> instance.
        /// </summary>

        public override void Format(TextWriter writer, Error error)
        {
            if (writer == null) throw new ArgumentNullException("writer");
            if (error == null) throw new ArgumentNullException("error");

            var page = new ErrorMailHtmlPage(error);
            writer.Write(page.TransformText());
        }
        /// <summary>
        /// Formats a complete HTML document describing the given
        /// <see cref="Error"/> instance.
        /// </summary>

        public override void Format(TextWriter writer, Error error)
        {
            if (writer == null)
            {
                throw new ArgumentNullException("writer");
            }
            if (error == null)
            {
                throw new ArgumentNullException("error");
            }

            var page = new ErrorMailHtmlPage(error);

            writer.Write(page.TransformText());
        }