# Module: vertx-web-js/error_handler

### Classes

ErrorHandler

### Methods

#### (static) ErrorHandler.create(errorTemplateName, displayExceptionDetails) → {ErrorHandler}

Create an error handler

##### Parameters:

Name | Type | Description
--- | --- | ---
`errorTemplateName` | string | the error template name - will be looked up from the classpath
`displayExceptionDetails` | boolean | true if exception details should be displayed

Source:
  - vertx-web-js/error_handler.js, line 61

##### Returns:

the handler

Type
  ErrorHandler