Business Console 10.7 | webMethods Business Console Documentation | Developing Gadgets for Business Console | Troubleshooting Gadgets | Handling Exceptions
 
Handling Exceptions
The gadget framework in Designer handles all the compile-time errors in your gadget code. To ensure that your gadget is free of syntax error, check the errors and warnings sections, and ensure that no errors are listed. If there are any warnings, program the gadget to handle the warnings to ensure that your gadget works properly. To handle runtime exceptions, you can encapsulate your scope functions in a try/catch block, and log the errors appropriately.