Class ErrorPages

java.lang.Object
dev.relism.flash.template.ErrorPages

public final class ErrorPages extends Object
Precompiled error page templates.

Static placeholders (logo_img, version) are baked in once at class init. Dynamic placeholders (method, path, exception …) are filled per call with a single allocation via ByteTemplate.render(java.lang.String...).

  • Constructor Details

    • ErrorPages

      public ErrorPages()
  • Method Details

    • renderNotFound

      public static byte[] renderNotFound(Request request)
    • renderException

      public static byte[] renderException(Request request, Exception ex)