Design patterns: exception / error handling

前端 未结 3 1397
南方客
南方客 2021-01-29 18:42

Is there any resource (web or book) describing exception handling / error handling design patterns?

There is a lot of literature on how to write clean code, and there ar

3条回答
  •  你的背包
    2021-01-29 19:11

    Best approach is never to swallow any exceptions within your application code. Hookup a handler to unhandled exceptions in your applications when bootstrapping where you can show an error message and do some logging.

    Some decent books i've read recommended this approach.

    http://thibautvs.com/blog/?p=2238 is a good one where it's mentioned.

提交回复
热议问题