@lgd-utils/error
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
- @lgd-utils/array - A front-end array tool
- @lgd-utils/axios - A axios adapter and middleware tool
- @lgd-utils/cached-storage - 一个具有失效功能的缓存存储库
- @lgd-utils/html - A front-end html tool
- @lgd-utils/number - A front-end number tool
- @lgd-utils/object - A front-end object tool
- @lgd-utils/regexp - A front-end regexp tool
- @lgd-utils/symbol - A front-end symbol tool
- @lgd-utils/utils - A front-end utils tool
- @lgd-utils/validate - A front-end verification tool
- More…