Example #1
0
function EmailErrorHandler($FXErrorObj)
{
    $altErrorMessage = 'The Server was unable to process your request.<br />The WebMaster has been emailed.<br /> Thank you for your patience.';
    EmailError($FXErrorObj->message);
    if (DISPLAY_ERROR_MESSAGES) {
        echo $FXErrorObj->message;
    } else {
        echo $altErrorMessage;
    }
    return true;
}
Example #2
0
function EmailErrorHandler($FXErrorObj)
{
    //if error not written to log
    if (checkLog() == false) {
        //send email to admins
        EmailError($FXErrorObj->message);
    }
    //write it
    writeLog($FXErrorObj->message);
    if (DISPLAY_ERROR_MESSAGES) {
        echo $FXErrorObj->message;
    }
    return true;
}