Class ErrorPageGenerators

java.lang.Object
io.quarkus.dev.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 Details

    • ErrorPageGenerators

      public ErrorPageGenerators()
  • Method Details

    • 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 -
    • get

      public static Function<Throwable,String> get(String rootCauseClassName)
    • clear

      public static void clear()