Class: ExtendedError

bin/errors/errors~ExtendedError(params)

Class representing an error that extends previously thrown errors.

Constructor

new ExtendedError(params)

Create an ExtendedError.
Parameters:
Name Type Description
params Object The error parameters supplied.
Properties
Name Type Attributes Description
error Error <optional>
The error being wrapped by this class.
data Object <optional>
The data of the error (Can be any relevant info).
Author:
  • Jose Nicolas Mora
Source:

Extends

  • Error

Members

(static) defaultProps

Getter for default error properties.
Source:

Methods

extendStackTrace()

Extend the stack trace to include previous errors
Source: