Skip to content

Commit d7523c0

Browse files
committed
Resolve conflict left.
1 parent e5d025a commit d7523c0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

1-js/10-error-handling/2-custom-errors/article.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,7 @@ We could also look at `err.name`, like this:
124124
125125
The `instanceof` version is much better, because in the future we are going to extend `ValidationError`, make subtypes of it, like `PropertyRequiredError`. And `instanceof` check will continue to work for new inheriting classes. So that's future-proof.
126126
127-
<<<<<<< HEAD
128-
Also it's important that if `catch` meets an unknown error, then it rethrows it in the line `(**)`. The `catch` only knows how to handle validation and syntax errors, other kinds (due to a typo in the code or such) should fall through.
129-
=======
130127
Also it's important that if `catch` meets an unknown error, then it rethrows it in the line `(**)`. The `catch` block only knows how to handle validation and syntax errors, other kinds (caused by a typo in the code or other unknown reasons) should fall through.
131-
>>>>>>> bc08fd1b32285304b14afea12a9deaa10d13452b
132128
133129
## Further inheritance
134130

0 commit comments

Comments
 (0)