filmov
tv
Rust Errors Backtrace
Показать описание
#rust #errors #panic #shorts
There are two groups of errors: recoverable and unrecoverable. Errors are a part of programming and every language handles it differently.
Recoverable errors are the ones you can catch while the program’s running and have the program decide what to do next depending on the kind of error it is in the current context. For example, maybe you want to read a file but the file cannot be found. Maybe you need to tell the user or the caller of your function that this error occurred because of this reason.
Unrecoverable errors are ones where the program cannot continue run. Like, reaching beyond the bounds of an array.
Rust has no exceptions. Instead, we use the Result type for recoverable errors and panic! macro for unrecoverable errors.
## Links
Chapter 9 of the Rust Programming Book: Error Handling
There are two groups of errors: recoverable and unrecoverable. Errors are a part of programming and every language handles it differently.
Recoverable errors are the ones you can catch while the program’s running and have the program decide what to do next depending on the kind of error it is in the current context. For example, maybe you want to read a file but the file cannot be found. Maybe you need to tell the user or the caller of your function that this error occurred because of this reason.
Unrecoverable errors are ones where the program cannot continue run. Like, reaching beyond the bounds of an array.
Rust has no exceptions. Instead, we use the Result type for recoverable errors and panic! macro for unrecoverable errors.
## Links
Chapter 9 of the Rust Programming Book: Error Handling
Rust Errors Backtrace
Easy Rust / Rust in a Month of Lunches 195: Backtraces at runtime
Dealing with Unrecoverable Errors in Rust: Panic!
Panic!, Unrecoverable Errors and Debugging in Rust - Full Crash Rust Tutorial for Beginners
Simple error handling in Rust
Laziness, Rust errors and the secret to being a 10x engineer
Error Handling in Rust
Rust Errors Unwinding
Rust Errors are Recoverable or Unrecoverable
RustConf 2020 - Error handling Isn't All About Errors by Jane Lusby
Debugging Rust with Recoverable Errors: Result, Match, ? - Full Crash Rust Tutorial for Beginners
Errors - Rust Programming #rustlang #shorts
Error Handling in Rust - Rust Programming Videos For Beginners - Lesson 18
Rust: Error Handling (Panic)
RustConf 2020 - Error handling Isn't All About Errors by Jane Lusby
Error Handling in Rust | ShuttleBytes #3
creating your own errors in rust may be easier than you think
Discover the Secrets to Effective Rust Error Handling - Take Your Rust Skills to the Next Level!
Learn Rust Together Part 9: Error handling with Result and panic!
Rust 1.65.0 Release Train
7 Rust Crash Course: Error Handling
Windows : Rust Backtrace on windows?
4 levels of Rust error handling
Rust Error Handling, Generic Types, Traits and Lifetimes (9-10)
Комментарии