You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/10-error-handling/2-custom-errors/article.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -321,7 +321,6 @@ try {
321
321
322
322
پس کد بیرونی `instanceof ReadError` را بررسی میکند و تمام. نیازی به لیست کردن تمام انواع ارور احتمالی نیست.
323
323
324
-
The approach is called "wrapping exceptions", because we take "low level" exceptions and "wrap" them into `ReadError` that is more abstract. It is widely used in object-oriented programming.
325
324
این روش «دربرگرفتن استثناءها» نامیده میشود چون ما استثناءهای «سطح پایین» را دریافت میکنیم و آنها را درون `ReadError` که خلاصهتر است «دربرمیگیریم».
0 commit comments