Back

Programming
errorHandler
Define errorHandler function that is called when errors occur 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:No Advanced/Enterprise:Yes DynamicEdit:No [Version 1.2]