business-exception-nestjs
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

business-exception-nestjs

Description

Business exception with interceptor to help log and handle error messages on NestJs

Instalation

npm i --save business-exception-nestjs

Quick Start

  1. Import BusinessExceptionModule on your AppModule using forRoot or forRootAsync methods.
  2. Add interceptor BusinessExceptionInterceptor on your AppModule.
  3. Use responseOnBusinessException config property to transform response when throw BusinessException on your code.
  4. The logOnBusinessException config property is called when throw BusinessException on your code.
  5. The logOnAnyException config property is called when throw any exception on your code.

/business-exception-nestjs/

    Package Sidebar

    Install

    npm i business-exception-nestjs

    Weekly Downloads

    0

    Version

    0.0.4

    License

    ISC

    Unpacked Size

    14.7 kB

    Total Files

    24

    Last publish

    Collaborators

    • devmontagnini