errorHandlingTest.php

Unit test script for validating proper functioning of the error handler mechanism on the xajax server side.

Summary
Unit test script for validating proper functioning of the error handler mechanism on the xajax server side.
Please see copyright.inc.php for a detailed description, copyright and license information.

Error Handling Test

Please see copyright.inc.php for a detailed description, copyright and license information.

Standard xajax startup

Enable Error Handler

Define error ridden function

  • syntax is correct, but logic errors will be generated at runtime.

Process the request or generate the initial page

This file contains detailed information regarding the xajax project, current version, copyrights, licnese and documentation.
Main xajax class and setup file.
var $bErrorHandler
This is a configuration setting that the main xajax object tracks.
function setFlag($name,
$value)
Sets a single flag (boolean true or false).
function setFlags($flags)
Sets a series of flags.
function setLogFile($sFilename)
Specifies a log file that will be written to by xajax during a request.
function processRequest()
If this is a xajax request (see xajax->canProcessRequest), call the requested PHP function, build the response and send it back to the browser.