﻿// JScript File

function MPLogStoreFrontException(strPagePath, strMethodName, strDetails, objException)
{
    try
    {
        var strError = "";
	    if (objException)
	        strError = objException.message;
//        Default.LogJavascriptException(intApplication, mpUserID, strPagePath, strMethodName, "Site ID=" + intSiteID + " | " + strDetails + "\n | " + strError + ", Browser=" + BrowserDetect.browser + " "+ BrowserDetect.version + "/" + BrowserDetect.OS + "/" + navigator.appVersion);
        alert("EXCEPTION!: " + strError);
    }
    catch (exception)
    {
        alert("An error occurred in the application.\n\nError name: " + exception.name + ".\nError message: " + exception.message + "\nPage path: " + strPagePath + "\nMethodName: " + strMethodName + "\nDetails: " + strDetails);
    }
}
