Error handling

BTT Web 2.0 On-Demand Workplace provides a debug mechanism, which includes log, debug, error, warn, assert, info and so on. It requires that your browser have installed the corresponding debugger (Firebug Lite). For example, Firebug for Firefox, or Firebug Lite for IE.

If you don't want to install the debugger, you can include the firebug-lite.js under the _firebug folder.

BTT Web2.0 On-Demand Workplace provides various kinds of exception types for the web developer to detect and locate the cause of an error or an exception.

Following is an example for exception handling in BTT Web2.0 On-Demand Workplace:

Error definition in widget JavaScript:
var rootNodeError=this.iContext.getElementsByClass({});

When running the application, the error information is found in Firebug console:

the error information found in Firebug console