Unit 'CustWeb' Package
[Overview][Types][Classes][Procedures and functions][Index] [#fcl]

ExceptionToHTML

Utility function to format exceptions as HTML error pages

Declaration

Source position: custweb.pp line 179

procedure ExceptionToHTML(

  S: TStrings;

  const E: Exception;

  const Title: string;

  const Email: string;

  const Administrator: string

);

Arguments

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

TWebHandler.ShowRequestException


Documentation generated on: Jan 27 2026