edge-error
TypeScript icon, indicating that this package has built-in type declarations

4.0.1 • Public • Published

edge-error

Create errors with custom stack trace pointing to a ".edge" file

github-actions-image npm-image license-image typescript-image

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

Readme

Keywords

Package Sidebar

Install

npm i edge-error

Weekly Downloads

28,297

Version

4.0.1

License

MIT

Unpacked Size

6.04 kB

Total Files

7

Last publish

Collaborators

  • virk
  • julien-r44