Back
errorHandler
Programming
errorHandler
Define errorHandler function that is called when errors occur
Default:
Returns true if error should be shown, false to ignore the error. The parameters are:

$msg = holds the error message
$severity = one of {LENSERROR_SEVERE=1, LENSERROR=0, LENSWARNING=-1}
$objid = the phpLens object id

Syntax
function show_error($msg, $severity, $objid)
{
if ($severity >= LENSERROR_SEVERE) {
@mail('admin',"Error $objid",$msg);
die();
}
return true;
}
$lens->errorHandler = 'show_error';

 Basic:Yes  Advanced/Enterprise:Yes  DynamicEdit:Yes   [Version 1.2]