@soluzioni-futura/extended-error

Extension of Error class

Usage no npm install needed!

<script type="module">
  import soluzioniFuturaExtendedError from 'https://cdn.skypack.dev/@soluzioni-futura/extended-error';
</script>

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!!")