Class EnhancedErrorFormatter

java.lang.Object
net.targetr.wtm3.util.HtmlErrorFormatter
net.targetr.rc.util.EnhancedErrorFormatter

public class EnhancedErrorFormatter extends HtmlErrorFormatter
Enhances HTML error pages with additional connection and request details.
  • Constructor Details

    • EnhancedErrorFormatter

      public EnhancedErrorFormatter()
      Creates a new EnhancedErrorFormatter.
  • Method Details

    • formatError

      public String formatError(HttpRequest httpReq, HttpResponse httpRes, int code, String info, String details, Throwable t)
      Description copied from class: HtmlErrorFormatter
      Formats an error response as an HTML page.
      Overrides:
      formatError in class HtmlErrorFormatter
      Parameters:
      httpReq - The HTTP request.
      httpRes - The HTTP response.
      code - The HTTP status code.
      info - The HTTP status message.
      details - Additional details about the error.
      t - The exception to use to display stack trace.
      Returns:
      The formatted HTML page.