@agora-lab/app-error
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

app-error

An error class contains statusCode, extras.

Installation

npm install @agora-lab/app-error

Usage

In Node.js:

const AppError = require('@agora-lab/app-error')
...
// somewhere you want to throw an exception.
throw new AppError(message, statusCode, extras)

Package Sidebar

Install

npm i @agora-lab/app-error

Weekly Downloads

9

Version

0.4.0

License

MIT

Unpacked Size

4.39 kB

Total Files

7

Last publish

Collaborators

  • fangqk1991