How to use the errlop/edition-node-0.8/index.js function in errlop

To help you get started, we’ve selected a few errlop examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bevry / editions / source / util.js View on Github external
function errtion({ message, code, level }, parent) {
	if (this) throw new Error('errtion is not to be created with new')
	const error = new Errlop(message, parent)
	if (code) error.code = code
	if (level) error.level = level
	return error
}

errlop

An extended Error class that envelops a parent error, such that the stack trace contains the causation

Artistic-2.0
Latest version published 1 year ago

Package Health Score

61 / 100
Full package analysis