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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

dc84576 · Jan 18, 2025

History

58 Commits
Jan 18, 2025
Nov 6, 2023
Nov 6, 2023
Feb 21, 2021
May 15, 2021
Nov 6, 2023
Feb 21, 2021
Feb 27, 2022
Nov 6, 2023
Jan 18, 2025
Nov 6, 2023
Jan 18, 2025
Jan 18, 2025
Sep 20, 2022

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