@lgd-utils/error
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

@lgd-utils/error

Bundle size MIT NPM downloads NPM version lodash npm styled with prettier

A front-end error tool

Usage

import error from '@lgd-utils/error';

const { CustomError } = error;
CustomError.isCustomError === true; // true
const customError = new CustomError('CustomError test', { key: 'value' })
customError.isCustomError === true; // true
console.log(customError.message); // 'CustomError test'
console.log(customError.key); // 'value'

Contribute

Documentation

Related

Package Sidebar

Install

npm i @lgd-utils/error

Weekly Downloads

8

Version

0.0.8

License

MIT

Unpacked Size

95.4 kB

Total Files

11

Last publish

Collaborators

  • lgd.huafeeng