Getting Started
Before starting you need to be authenticated, since the package is hosted within a private npm registry, the authentication steps are described before.
Authentication
npm i @tradinos/cms-backend-prisma-errorsimport { Module } from '@nestjs/common';
import { APP_FILTER } from '@nestjs/core';
import { PrismaErrorExceptionFilter } from '@tradinos/cms-backend-prisma-errors';
@Module({
providers: [
{
provide: APP_FILTER,
useClass: PrismaErrorExceptionFilter,
},
],
})
export class AppModule {}Default Handlers
Prisma Error Code
Mapped Http Exception
Last updated