Skip to content

Commit

Permalink
Added decision on global error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Sep 25, 2017
1 parent ab8c54f commit 0a7dbe3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/internals/design-decisions.md
Expand Up @@ -26,3 +26,4 @@ the core developers.
6. [Helpers vs separate non-static classes](https://github.com/yiisoft/yii2/pull/12661#issuecomment-251599463)
7. **Setters method chaining** should be avoided if there are methods in the classs returning meaningful values. Chaining could be
supported if a class is a builder where all setters are modifying internal state: https://github.com/yiisoft/yii2/issues/13026
8. **Global exception/error handler** is used instead of local try-catch because it is reliable in terms of catching destructors and everything that happens outside the scope of the `run()` method such as bootstrap. See [#14348](https://github.com/yiisoft/yii2/issues/14348).

0 comments on commit 0a7dbe3

Please sign in to comment.