0

¿Para qué sirve el Try Catch?

He oído para q sirve el manejo de excepciones pero no sé de q forma ni lo he usado en los códigos q yo he escrito

23rd Nov 2019, 2:58 AM
Rommel Lenin Ortiz Chavez
Rommel Lenin Ortiz Chavez - avatar
2 Réponses
+ 1
if you try{ do something what can crash program, like read file which dosn't exist } you can catch { this crash or error, display message to user } and program can continue.
23rd Nov 2019, 3:40 AM
zemiak
0
Ok friend, now i understood. Thanks.👍
23rd Nov 2019, 3:51 AM
Rommel Lenin Ortiz Chavez
Rommel Lenin Ortiz Chavez - avatar