io.vertx.ext.web.handler

## Interface ErrorHandler

- All Superinterfaces:
    Handler<RoutingContext>

      public interface ErrorHandler
      extends Handler<RoutingContext>

  A pretty error handler for rendering error pages.
  Author:
    Tim Fox

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static boolean` | `DEFAULT_DISPLAY_EXCEPTION_DETAILS` Should exception details be displayed by default?
    `static String` | `DEFAULT_ERROR_HANDLER_TEMPLATE` The default template to use for rendering

  - ### Method Summary

    All Methods Static Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `static ErrorHandler` | `create()` Create an error handler using defaults
    `static ErrorHandler` | `create(boolean displayExceptionDetails)` Create an error handler
    `static ErrorHandler` | `create(String errorTemplateName)` Create an error handler
    `static ErrorHandler` | `create(String errorTemplateName, boolean displayExceptionDetails)` Create an error handler

    - ### Methods inherited from interface io.vertx.core.Handler

      `handle`

- - ### 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

    - #### DEFAULT_DISPLAY_EXCEPTION_DETAILS

          static final boolean DEFAULT_DISPLAY_EXCEPTION_DETAILS

      Should exception details be displayed by default?
      See Also:
        Constant Field Values

  - ### Method Detail

    - #### create

          static ErrorHandler create()

      Create an error handler using defaults
      Returns:
        the handler

    - #### create

          static ErrorHandler create(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(boolean displayExceptionDetails)

      Create an error handler
      Parameters:
        `displayExceptionDetails` - true if exception details should be displayed
      Returns:
        the handler

    - #### create

          static ErrorHandler create(String errorTemplateName)

      Create an error handler
      Parameters:
        `errorTemplateName` - the error template name - will be looked up from the classpath
      Returns:
        the handler

Copyright © 2015. All Rights Reserved.