n4v-app-error
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

net4VISIONS AppError class

This is an extendable class for handling custom erros in Node.js projects.

It provides TypeScript typings.

Installation

npm i n4v-app-error

Usage

TypeScript

import { AppError } from 'n4v-app-error';
 
class MyError extends AppError {
  name = 'MyError';
}
 
new MyError('something goes wrong %d times', 2);

JavaScript

const AppError = require('n4v-app-error').AppError;
 
new AppError('something goes wrong %d times', 2);

Package Sidebar

Install

npm i n4v-app-error

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

13.6 kB

Total Files

12

Last publish

Collaborators

  • arlecchino