From 8b0a225bb2294b44bbb17840cd264ab6764b13fb Mon Sep 17 00:00:00 2001 From: Alex Paliarush Date: Tue, 5 Mar 2019 11:59:29 -0600 Subject: [PATCH] Update technical-guidelines.md --- guides/v2.2/coding-standards/technical-guidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/v2.2/coding-standards/technical-guidelines.md b/guides/v2.2/coding-standards/technical-guidelines.md index 2211fc30f6c..166fda4f4e8 100644 --- a/guides/v2.2/coding-standards/technical-guidelines.md +++ b/guides/v2.2/coding-standards/technical-guidelines.md @@ -496,7 +496,7 @@ class View extends Template 5.16. If a method uses system resources (such as files, sockets, streams, etc.), the code MUST be wrapped with a `try` block and the corresponding `finally` block. In the `finally` sections, all resources SHOULD be properly released. -5.17. `LocalizedException` SHOULD only be thrown in the Presentation layer (Controllers, Blocks). +5.17. Exceptions which need to be displayed to the user MUST be sub-types of `LocalizedException`. Any other types of exceptions MUST be wrapped with `LocalizedException` before being displayed to the user. ## 6. Application layers