What is Exception Handling in Ruby? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 7

What is Exception Handling in Ruby?

16th Jan 2018, 4:33 AM
Uttam
Uttam - avatar
2 Antworten
+ 2
Exception handling is basically just telling the program to do something if something in the code goes wrong. For example, if you're trying to get user input as an int but they put in a string, it will most likely raise an error and when it does, you can run a certain block of code. Hope this helped!
16th Jan 2018, 5:04 AM
Faisal
Faisal - avatar
+ 2
@Faisal see this and try to understand. Then teach me... https://bugs.ruby-lang.org/issues/12906
16th Jan 2018, 8:01 AM
Uttam
Uttam - avatar