Error Handling
From Daxipedia
Contents |
[edit] Description
[edit] Handling errors
[edit] 4D based
[edit] Critical errors
Critical errors will refresh the page.
Following errors are considered critical:
- Invalid Access Point
- Invalid Session Id - session id is expired or invalid.
[edit] Other errors
Other errors will be silently displayed in the console, which can be opened via button on the sidebar if user is logged in as administrator, or via showDebugger command. Check Console entry for more information on console.
[edit] Browser based
Browser based errors are triggered by browser, which are most often Javascript errors.
[edit] Trapping errors
Developer can trap for errors in fourdaf_dev_errorTrap function located in callbacks.js function.
Parameters received:
- type - error type, can be 4D or browser.
- hint - error hint sent by 4D.
- message - error message sent by 4D.
fourdaf_dev_errorTrap (type, hint, message) {
}
[edit] Third party integration
[edit] Firebug and Firebug Lite
If Firebug plug-in for Firefox is installed, errors will be displayed in the Firebug console as well. This also includes Firebug Lite which is supported in Internet Explorer 7 and Safari 2.
[edit] Safari console
If Safari debug menu is enabled, errors will be displayed in Safari Javascript console.
