@soluzioni-futura/extended-error
v1.0.2
Published
Extension of Error class
Downloads
124
Keywords
Readme
extended-error-package
Extension of Error class
Quick start
Install the package
$ npm i @soluzioni-futura/extended-error
Usage
import ExtendedError from "@soluzioni-futura/extended-error"
enum ERROR_CODES {
ERROR_A = "ERROR_A",
ERROR_B = "ERROR_B"
}
throw new ExtendedError(ERROR_CODES.ERROR_A, "Error!!")