what is "try throw catch" and were i can find it in sololearn? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 2

what is "try throw catch" and were i can find it in sololearn?

thanx in advanc

31st Jul 2017, 8:08 PM
‏‪Amer Abdulhafiz‬‏
‏‪Amer Abdulhafiz‬‏ - avatar
3 Respuestas
+ 13
try/catch is a structure that checks for possible exceptions/errors in a section of code (inside the try structure), and handles them (inside the catch structure(s)) so the program doesn't crash. The throw keyword raises an exception to catch. For C++, the lesson on them is in the Templates, Exceptions, and Files section. You'll have to do all the prior C++ lessons before you can get to it, though.
31st Jul 2017, 8:22 PM
Tamra
Tamra - avatar
+ 5
tnx guys :-)
31st Jul 2017, 8:23 PM
‏‪Amer Abdulhafiz‬‏
‏‪Amer Abdulhafiz‬‏ - avatar
+ 3
handling exceptions lesson.
31st Jul 2017, 8:21 PM
mohamad mahjoob
mohamad mahjoob - avatar