Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit f5aa20d

Browse files
authored
Merge pull request #3871 from paliarush/patch-7
Update technical-guidelines.md
2 parents c2eda46 + 2dea44c commit f5aa20d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/v2.2/coding-standards/technical-guidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ class View extends Template
496496

497497
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.
498498

499-
5.17. `LocalizedException` SHOULD only be thrown in the Presentation layer (Controllers, Blocks).
499+
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.
500500

501501
## 6. Application layers
502502

0 commit comments

Comments
 (0)