4.0.1 • Published 4 months ago

edge-error v4.0.1

Weekly downloads
1,368
License
MIT
Repository
github
Last release
4 months ago

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

4 months ago

4.0.0

6 months ago

4.0.0-0

10 months ago

3.0.0

2 years ago

2.0.8

2 years ago

2.0.7

2 years ago

2.0.6

3 years ago

2.0.5

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.4

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.5

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago