Pinchflat

Make your custom errors fly! | Advanced Rust Part 6

Raw Attributes

Source: Advanced Rust
  • media_id: KrZ0nmpNVOw
  • duration_seconds: 1889
  • predicted_media_filepath: /downloads/chris/tubes/Advanced Rust_[PLFdNoRgzggbr7tkQsO4VrF1UGy0ji9sZl]/Season 2024/s2024e050100_Make your custom errors fly! | Advanced Rust Part 6.mp4
  • short_form_content: false
  • upload_date_index: 0
  • nfo_filepath: /downloads/chris/tubes/Advanced Rust_[PLFdNoRgzggbr7tkQsO4VrF1UGy0ji9sZl]/Season 2024/s2024e050100_Make your custom errors fly! | Advanced Rust Part 6_[KrZ0nmpNVOw].nfo
  • media_filepath: /downloads/chris/tubes/Advanced Rust_[PLFdNoRgzggbr7tkQsO4VrF1UGy0ji9sZl]/Season 2024/s2024e050100_Make your custom errors fly! | Advanced Rust Part 6_[KrZ0nmpNVOw].mp4
  • description: Rust gives us a lot of freedom in how we want to pursue error handling. I prefer creating custom errors and making use of the traits From, Debug, Display and Error. Watch the rest of this series: https://www.youtube.com/playlist?list=PLFdNoRgzggbr7tkQsO4VrF1UGy0ji9sZl New to Rust? Check out my fundamentals series: https://www.youtube.com/playlist?list=PLFdNoRgzggbo6BqJQ6tqk_wvXeI5yfbGA Find this code on my Github: https://github.com/Thodin/custom-errors/ Find me elsewhere: 🐘 Mastodon: https://mastodon.social/@GreenTeaCoding Timestamps: 00:00 What do we want from error handling 03:53 Csv reading without error handling 11:47 Custom errors 12:14 Result type alias 14:06 Wrapping debug data 15:36 collecting Result Vec 18:08 Bubbling up errors 19:04 More custom errors 23:54 Debug + Display 25:07 Error trait 26:38 From trait 28:07 Testing 29:39 Wrap-up #rustlang #errorhandling #bestpractice
  • updated_at: 2025-01-13T03:12:14Z
  • id: 307943
  • media_size_bytes: 104773972
  • inserted_at: 2025-01-13T03:10:50Z
  • media_redownloaded_at:
  • prevent_culling: false
  • source_id: 22
  • original_url: https://www.youtube.com/watch?v=KrZ0nmpNVOw
  • uuid: f99e10b7-7b2f-4b83-952a-2e26bb45dd52
  • matching_search_term:
  • metadata_filepath: /downloads/chris/tubes/Advanced Rust_[PLFdNoRgzggbr7tkQsO4VrF1UGy0ji9sZl]/Season 2024/s2024e050100_Make your custom errors fly! | Advanced Rust Part 6_[KrZ0nmpNVOw].info.json
  • uploaded_at: 2024-05-01T05:00:17Z
  • thumbnail_filepath: /downloads/chris/tubes/Advanced Rust_[PLFdNoRgzggbr7tkQsO4VrF1UGy0ji9sZl]/Season 2024/s2024e050100_Make your custom errors fly! | Advanced Rust Part 6_[KrZ0nmpNVOw]-thumb.jpg
  • prevent_download: false
  • tasks:
  • title: Make your custom errors fly! | Advanced Rust Part 6
  • last_error:
  • culled_at:
  • subtitle_filepaths:
  • media_downloaded_at: 2025-01-13T03:12:12Z
  • livestream: false
  • playlist_index: 6

Nothing Here!