BadRequestError is not a constructor! typescript-express-webpack

前端 未结 0 444
执念已碎
执念已碎 2020-11-22 05:17
this is how I handle error in my express app:

export abstract class CustomError extends Error {
  abstract statusCode: number;
  constructor(message: string) {
             


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题