Package net.targetr.rc.util
Class EnhancedErrorFormatter
java.lang.Object
net.targetr.wtm3.util.HtmlErrorFormatter
net.targetr.rc.util.EnhancedErrorFormatter
Enhances HTML error pages with additional connection and request details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformatError(HttpRequest httpReq, HttpResponse httpRes, int code, String info, String details, Throwable t) Formats an error response as an HTML page.
-
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:HtmlErrorFormatterFormats an error response as an HTML page.- Overrides:
formatErrorin classHtmlErrorFormatter- 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.
-