1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2026-03-01 18:56:24 +01:00
rustlings/exercises/13_error_handling
2025-06-13 12:24:09 +02:00
..
errors1.rs Remove dot for copy-pasta 2024-08-17 15:45:02 +02:00
errors2.rs Improve a comment in errors2 2024-07-04 13:03:05 +02:00
errors3.rs errors3: Add a comment to prevent changing the wrong line 2024-07-08 15:05:58 +02:00
errors4.rs Clarify how to find return type of error4 2025-06-13 12:24:09 +02:00
errors5.rs Fix typo - errors5.rs 2025-03-25 09:24:49 -04:00
errors6.rs chore: Fix snakecase convention in errors6.rs 2024-08-04 02:36:45 -04:00
README.md Use consistent apostrophes in markdown files 2025-02-28 11:46:39 +11:00

Error handling

Most errors aren't serious enough to require the program to stop entirely. Sometimes, when a function fails, it's for a reason that you can easily interpret and respond to. For example, if you try to open a file and that operation fails because the file doesn't exist, you might want to create the file instead of terminating the process.

Further information