Interface ErrorHandler

    • Field Detail

      • DEFAULT_ERROR_HANDLER_TEMPLATE

        static final String DEFAULT_ERROR_HANDLER_TEMPLATE
        The default template to use for rendering
        See Also:
        Constant Field Values
    • Method Detail

      • create

        static ErrorHandler create​(Vertx vertx)
        Create an error handler using defaults
        Returns:
        the handler
      • create

        static ErrorHandler create​(Vertx vertx,
                                   String errorTemplateName,
                                   boolean displayExceptionDetails)
        Create an error handler
        Parameters:
        errorTemplateName - the error template name - will be looked up from the classpath
        displayExceptionDetails - true if exception details should be displayed
        Returns:
        the handler
      • create

        static ErrorHandler create​(Vertx vertx,
                                   boolean displayExceptionDetails)
        Create an error handler
        Parameters:
        displayExceptionDetails - true if exception details should be displayed
        Returns:
        the handler
      • create

        static ErrorHandler create​(Vertx vertx,
                                   String errorTemplateName)
        Create an error handler
        Parameters:
        errorTemplateName - the error template name - will be looked up from the classpath
        Returns:
        the handler