Skip to content
/ error Public

Standard error interface for Edge template engine. Used by lexer, parser and the main engine

License

Notifications You must be signed in to change notification settings

edge-js/error

Repository files navigation

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

About

Standard error interface for Edge template engine. Used by lexer, parser and the main engine

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published