1.

What are the Error Handling procedures in Rust?

Answer»

Rust Error Handling is categorized into THREE PARTS:

  • Recoverable Error with Results : If an error OCCURS, the program doesn’t stop completely. Instead, it can easily be interpreted or responded.
  • 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.
  • 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.


Discussion

No Comment Found