harttle.github.io icon indicating copy to clipboard operation
harttle.github.io copied to clipboard

2019/03/05/typescript-extend-error

Open utterances-bot opened this issue 6 years ago • 1 comments

TypeScript 中如何继承 Error 类 | Harttle Land

在 JavaScript 中很多时候都需要自定义错误,尤其是开发 Node.js 应用的时候。比如一个典型的网站服务器可能需要有 NetworkError, DatabaseError, UnauthorizedError 等。我们希望这些类都拥有...

https://harttle.land/2019/03/05/typescript-extend-error.html

utterances-bot avatar Mar 17 '19 12:03 utterances-bot

友链前来学习~棒

stacklens avatar Mar 17 '19 12:03 stacklens