nest icon indicating copy to clipboard operation
nest copied to clipboard

[Question] HttpException part of core package

Open JulianRuhrDev opened this issue 9 years ago • 4 comments

Hi,

I have a question regarding the new module structure. Is it intended that the HttpException class is part of the nestjs/core instead of the nestjs/common package?

This seems a bit odd to me as I expect the HttpException to be part of the common package.

JulianRuhrDev avatar May 19 '17 08:05 JulianRuhrDev

Hi @JulianBiermann, You're right, it can be a little bit unintuitive, but I don't want to move it, because it will be some kind of 'breaking change'. I have been wondering about an alias of HttpException in @nestjs/common package, but it also might be weird

kamilmysliwiec avatar May 24 '17 10:05 kamilmysliwiec

@kamilmysliwiec maybe when nest will grow up in the time, around next major release there will show up requirements for split some classes into fe: @nest/http module. For me, nest is a perfect solution to work with node, but not necessary with http protocol.

Regards.

cojack avatar Jun 01 '17 07:06 cojack

Hi guys, At the moment I don't plan to move any classes, just to avoid the mess.

kamilmysliwiec avatar Jul 16 '17 11:07 kamilmysliwiec

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Sep 25 '19 12:09 lock[bot]