问题描述
在我的代码 AppServer项目中引用了域库。 要了解AppServer如何引用域库,请参考:https://www.typescriptlang.org/docs/handbook/project-references.html#what-is-a-project-reference
这是我的代码结构来说明它:
+---apps
| +---AppServer
| | +---config
| | +---src
| | | +---ScenarioHttp
| | | \---tasks
| | | +---dto
| | | \---pipes
| | \---test
\---libraries
+---domain
| \---src
| +---common
| | \---dto
| \---scenario
| +---dto
| +---entity
| +---repo
| \---service
域库包含可以抛出 像这样的错误:
throw new HttpException('TEST',HttpStatus.FORBIDDEN);
但是,API的响应已通过消息和状态代码更改为“内部服务器错误”和“ 500”。
如果从 AppServer 代码引发异常,则错误会正确冒出。 错误和状态代码分别显示为“测试”和“ 403”。
感谢您到目前为止的阅读。任何帮助都非常感谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)