error-edge
v4.0.3
Published
Create errors with custom stack trace pointing to the .edge template file
Readme
error-edge
Create errors with custom stack trace pointing to a ".edge" file
[![github-actions-image]][github-actions-url] [![npm-image]][npm-url] [![license-image]][license-url] [![typescript-image]][typescript-url]
The package extends the native Error class and adds support for pushing an error stack frame pointing to a ".edge" template file.
Usage
Install the package from the npm packages registry.
npm i error-edge
# yarn
yarn add error-edgeThen use it as follows
import { EdgeError } from 'error-edge'
throw new EdgeError('message', 'status', {
line: 1,
col: 2,
filename: 'absolute/path/to/index.edge'
})