egghead.io
  1. 1
    Install Rust
    39s
  2. 2
    Compile and run a Rust program from scratch
    42s
  3. 3
    Create a Rust package with the Cargo package manager
    1m 7s
  4. 4
    Compile and run a Rust program using Cargo
    46s
  5. 5
    Variables and Mutability in Rust
    1m 48s
  6. 6
    Output multiple variables using println!() in Rust
    44s
  7. 7
    Write and call a function in Rust
    1m 10s
  8. 8
    Understanding basic Ownership and Borrowing in Rust
    2m 37s
  9. 9
    Read user input from stdin in Rust
    1m 13s
  10. 10
    Handle errors with unwrap() in Rust
    2m 56s
  11. 11
    Handle errors in Rust using expect()
    31s
  12. 12
    Handle errors in Rust using Pattern Matching
    2m 20s
  13. 13
    Exit a program using std::process in Rust
    46s
  14. 14
    Create a loop in Rust
    37s
  15. 15
    Make your Rust code more DRY
    1m 35s

Handle errors in Rust using expect()

Pascal Precht
InstructorPascal Precht
  • rust
    Rust>=1.40.0

Share this video with your friends

Send Tweet

This lesson discusses how to improve error handling by configuring custom error messages using the expect() function.

illustration for Write Your First Program with the Rust Language

Course

Write Your First Program with the Rust Language

Build your Developer Portfolio and climb the engineering career ladder.
  • Search
  • Talks
  • Podcasts
  • Machine
  • Pricing
  • Store
©egghead.io
Terms & Conditions