@cryptolw/error

0.0.3 • Public • Published

@cryptolw/error

Install this dependency with:

yarn add @cryptolw/error

Usage

"use strict";

const CryptowlError = require("@cryptolw/error");

try {
  throw new CryptowlError("Message", { extra: [1, 2, 3] });
  // ...
} catch (err) {
  if (err.isCryptowlError || err instanceof CryptowlError) {
    // ...
  } else {
    throw err; // Unknown error.
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @cryptolw/error

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • mrpatiwi