Class ErrorPageGenerators


  • public class ErrorPageGenerators
    extends Object
    The generators can be used to generate a custom HTML page for a specific deployment exception that occurs during the development mode.

    In order to avoid classloading issues the generators should not access the root cause directly but use reflection instead (the exception class could be loaded by a different class loader).

    • Constructor Detail

      • ErrorPageGenerators

        public ErrorPageGenerators()
    • Method Detail

      • register

        public static void register​(String rootCauseClassName,
                                    Function<Throwable,​String> function)
        Register a function that will be used to generate the error page for the given root cause.
        Parameters:
        rootCauseClassName -
        function -
      • clear

        public static void clear()