@breadhead/nest-throwable-bus
v1.0.7
Published
Wrapper for Nest Command Bus with the possibility of throwing exceptions
Downloads
11
Readme
Nest Throwable Bus
In the CQRS module for Nest Framework we found one minor problem. Exceptions from the handler aren't thrown into the calling code. In the original repository a solution was proposed that it would severely pollute the code. Our solution allows to continue working with the module as before, but with improved exception handling.
Instalation
yarn add @breadhead/nest-throwable-bus
Usage
Just replace:
import { CommandHandler } from '@nestjs/cqrs'
toimport { CommandHandler } from '@breadhead/nest-throwable-bus'
import { CommandBus } from '@nestjs/cqrs'
toimport { CommandBus } from '@breadhead/nest-throwable-bus'
All done!