Design patterns: exception / error handling

前端 未结 3 1353
南方客
南方客 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:33

    These patterns and best practices are often bound to a specific platform/language, so they are the first place to look for them.

    • Exception patterns wiki is a general patterns resource.

    As an example check the following links for java:

    • Best Practices for Exception Handling
    • 15 Best practices about exception handling
    • Exception-Handling Antipatterns

    Going through such materials would give you a general idea to follow in exception handling mechanisms.

    Also check other SO questions:

    • Exception handling pattern
    • Java Style: Properly handling exceptions

提交回复
热议问题