0 votes
in Rust by
What are the Error Handling procedures in Rust?

1 Answer

0 votes
by

Rust Error Handling is categorized into three parts:

  1. Recoverable Error with Results : If an error occurs, the program doesn’t stop completely. Instead, it can easily be interpreted or responded.
  2. Unrecoverable Errors with Panic : If something wrong goes with the code, Rust’s panic macro comes into action, shows the error message, clean the error and then quit.
  3. Panic or Not to Panic : When you are dicey about calling panic or not, write the code that panics and the process will continue as 2nd.

Related questions

0 votes
asked Dec 28, 2023 in Rust by Robin
0 votes
asked Dec 28, 2023 in Rust by Robin
...