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.
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'
})