@sz-sw/ns-error
v1.1.1
Published
Creates a '''namespaced''' error object:
Downloads
7
Readme
@sz-sw/ns-error
Creates a '''namespaced''' error object:
const NSError = require("@sz-sw/ns-error")("my-package")
console.log(
NSError("Test")
) // logs Error: <@sz-sw/my-package>: Test