Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ErrorHandler

A pretty error handler for rendering error pages. When working in development mode exception details will be returned in the server responses, otherwise or when manually specified no exception details are returned in the HTTP response.

The reason the display of the exception details is by default dependent of the mode is to follow the security best practices: https://www.owasp.org/index.php/Improper_Error_Handling

Hierarchy

  • ErrorHandler

Implements

  • any

Index

Properties

Static Readonly DEFAULT_ERROR_HANDLER_TEMPLATE

DEFAULT_ERROR_HANDLER_TEMPLATE: string

The default template to use for rendering

Methods

handle

  • Parameters

    Returns void

Static create

  • create(vertx: Vertx): ErrorHandler
  • create(vertx: Vertx, errorTemplateName: string, displayExceptionDetails: boolean): ErrorHandler
  • create(vertx: Vertx, displayExceptionDetails: boolean): ErrorHandler
  • create(vertx: Vertx, errorTemplateName: string): ErrorHandler
  • Create an error handler using defaults

    Parameters

    • vertx: Vertx

    Returns ErrorHandler

  • Create an error handler

    Parameters

    • vertx: Vertx
    • errorTemplateName: string
    • displayExceptionDetails: boolean

    Returns ErrorHandler

  • Create an error handler

    Parameters

    • vertx: Vertx
    • displayExceptionDetails: boolean

    Returns ErrorHandler

  • Create an error handler

    Parameters

    • vertx: Vertx
    • errorTemplateName: string

    Returns ErrorHandler

Generated using TypeDoc