Skip to content

ExceptionToHTML

Utility function to format exceptions as HTML error pages

Declaration

Source position: custweb.pp line 188

procedure ExceptionToHTML(S: TStrings; const E: Exception; 
                         const Title: string; const Email: string; 
                         const Administrator: string; 
                         IncludeStackTrace: Boolean);

Arguments

Name Description
S String list to store the generated HTML content
E The exception to format as HTML
Title Application title for the error page
Email Administrator email address for contact link
Administrator Administrator name for the contact information

Description

Formats an exception into a complete HTML error page with stack trace information. Generates a user-friendly error page that includes exception details, stack trace, and administrator contact information.

The generated HTML includes the application title, error message, stack trace with function names, and optional administrator email contact link.

Errors

No specific errors during HTML generation.

See also

Name Description
TWebHandler.ShowRequestException