Try&Catch v1.1.0
Second version of the Try&Catch extension. This update contains some new blocks and have some changed.
New Blocks
-
Exception
This is the same block as Catch. It just has a extra parameter that returns exception name and error return the error message of exception. I have not deleted the Catch block because it may break your projects. Now you can migrate to this block from Catch if you want. Both event will be raised when any exception caught.
-
Call Procedure
This block calls a procedure with a list of parameters in try catch. This is most simple thing you can do with your blocks to catch the errors. You can use any block of any component in that procedure if any error occurs then the Exception and Catch event will be raised. Now you won’t need to use Call Method block to call every method of the component with try catch. Just move your whole blocks to a procedure and call the procedure with this block.
How to use
Here is an image of blocks that shows how to call the procedure with new block.
Update Extension
You can download the new version from the same above link on the first post.
Credit
Thanks @dora_paz for testing the extension.
I would really love to thanks Atom Developer for posting the sources code here :
And @zainulhassan too, Thank you for posting above link in your topic. It just made my work more simple.
Thank you
Sumit