Error Handling

๋Ÿฌ์ŠคํŠธ์˜ ์˜ค๋ฅ˜ ์ฒ˜๋ฆฌ๋Š” ๋ช…์‹œ์ ์ธ ํ๋ฆ„์ œ์–ด๋กœ ์ฒ˜๋ฆฌ๋ฉ๋‹ˆ๋‹ค:

  • ์˜ค๋ฅ˜๋ฅผ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๋Š” ํ•จ์ˆ˜๋Š” ๋ฐ˜ํ™˜ ํƒ€์ž…์— ๋ช…์‹œํ•ฉ๋‹ˆ๋‹ค.
  • ์˜ˆ์™ธ๋Š” ์—†์Šต๋‹ˆ๋‹ค.

Error handling in Rust is done using explicit control flow:

  • Functions that can have errors list this in their return type,
  • There are no exceptions.