Programming With Ruby Episode 15, Error Handling

preview_player
Показать описание
You will learn what errors are, how to handle them, and how to raise your own errors

Links:

Рекомендации по теме
Комментарии
Автор

I don't get “ensure”, isn't “begin” already supposed to make the code run no matter what? Why create ensure below, why not just put that code in begin?

juancpgo
Автор

At the end, when he raised himself “ArgumentError”, I don't get it. When should I use begin/end and when raise? At the end it will do the same, right? Confusing.

juancpgo
Автор

thank you,
p.s
indentation is way to much, it should be only 2 spaces

engelshentenawy
join shbcf.ru