vertx / io.vertx.ext.web.handler / ErrorHandler

ErrorHandler

interface ErrorHandler : Handler<RoutingContext>

A pretty error handler for rendering error pages.

Author
Tim Fox

Properties

DEFAULT_DISPLAY_EXCEPTION_DETAILS

static val DEFAULT_DISPLAY_EXCEPTION_DETAILS: Boolean

Should exception details be displayed by default?

DEFAULT_ERROR_HANDLER_TEMPLATE

static val DEFAULT_ERROR_HANDLER_TEMPLATE: String

The default template to use for rendering

Functions

create

open static fun create(): ErrorHandler

Create an error handler using defaults

open static fun create(errorTemplateName: String, displayExceptionDetails: Boolean): ErrorHandler
open static fun create(displayExceptionDetails: Boolean): ErrorHandler
open static fun create(errorTemplateName: String): ErrorHandler

Create an error handler