LESSON 14: Why does "fulfillrandomWords" test has 2 try/catch? #2767
Answered
by
alymurtazamemon
DorianDaSilva
asked this question in
Q&A
-
I noticed in the course repo that "fulfillrandomWords" test contains 2 try/catch blocks. I was wondering why that is and what determines if a test will have 1, 2 or more try/catch blocks? Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
alymurtazamemon
Sep 21, 2022
Replies: 1 comment 2 replies
-
@DorianDaSilva Try/Catch is basically to handle the errors that can occur during that. So where you feel that error can occur you can add this. The catch will tell you the details about the error and stack trace if errors occur. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
alymurtazamemon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@DorianDaSilva Try/Catch is basically to handle the errors that can occur during that. So where you feel that error can occur you can add this.
The catch will tell you the details about the error and stack trace if errors occur.