Class ErrorPageProvider

java.lang.Object
com.saperion.ngc.util.ErrorPageProvider

public final class ErrorPageProvider extends Object
This provider generates the HTML markup to use in error pages.
Author:
sts
  • Method Details

    • getErrorPageMarkup

      public static String getErrorPageMarkup(jakarta.servlet.http.HttpServletRequest request, String title, String description, String image, ErrorPageProvider.ErrorPageConfig config)
      Generates the HTML markup by the given parameters.
      Parameters:
      request - The http request.
      title - The title of the error page.
      description - The description of the error page.
      image - The background-image of the error page.
      config - The configuration of the error page.
      Returns:
      the HTML markup.