[FREE] Try Catch – An Extension to run your code with try catch
1. Introduction
Description: This extension allows you to call methods and set the properties with try and catch. What is Try & Catch? Try and catch place around the code to catch the exception like if you have a list of 3 items and you are selecting 4th then it will throw a runtime error with a dialog that impact very bad on UI and to user. So that’s why I come up with this little extension. It has few blocks that will help you to catch the exception while calling the method and setting the properties of the components. As it works through Java reflection so you can also call method of extensions even of this extension.
Latest Version: 1.1.0
Released on: 21 July 2021
Updated on: 21 July 2021
Aix Size: 8KB
2. All Blocks
3. Documentation
This event raises when any exception is caught. It gives the exception in string. For ex, java.lang.ArrayIndexOutOfBoundsException. | |
This block is for selecting the item of a list with catch exceptions. If the index is greater than the list length then it will simply call the catch event with java.lang.ArrayIndexOutOfBoundsException exception. | |
This block invokes the methods and properties of the component as well as extensions. You just need to pass the component or extension to component parmaeter and method or property name to the name parameter and then just provide a list of parameters of that method that you are calling and the method will be invoke or called. If the called method is void type then you will get nothing in return but if not then it will return the result of the invoked or called method. If any error occured then catch event will be raised. | |
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. |
4. Usage
5. Downloads
File Name: com.sumit1334.trycatch.aix
6. Donate
If you liked my any work or the extension, you can support by donating some amount.
Paypal: paypal.me
UPI: iamwsumit@kotak
If you have any issue regarding the extension then you can contact me here
Thank you