+ 4
Can anyone explain about "try"?
Try and else
5 Respuestas
+ 3
code stops running if it encounters an error. the try and except block is used to allow code to continue running if an error is encountered.
+ 3
Try is usually coupled with catch, not else.
+ 2
It's the entry point for error trapping code block, and is followed by an error handling code block, with or without error logging.
+ 1
In short words this is part of handling exceptions.
If something will fail in try block, code will go to catch block