edge-error
v4.0.1
Published
Create errors with custom stack trace pointing to the .edge template file
Downloads
138,266
Readme
edge-error
Create errors with custom stack trace pointing to a ".edge" file
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 edge-error
# yarn
yarn add edge-error
Then use it as follows
import { EdgeError } from 'edge-error'
throw new EdgeError('message', 'status', {
line: 1,
col: 2,
filename: 'absolute/path/to/index.edge'
})