﻿function ExceptionHandlerForWebService(Exception)
{
    if(Exception != null)
    {
        var strMessage = Exception.get_exceptionType() + Exception.get_message(); 
	//alert(Exception.get_stackTrace());
        
        var strStackTrace = Exception.get_stackTrace();
        LogException(strMessage,strStackTrace);
    }
}

function LogException(ExceptionMessage,strDescription)
{
     Arcadix.Framework.Core.FrameworkExceptionServices.ExceptionService.LogException(ExceptionMessage,strDescription,EmptyMethod,EmptyMethod);	
}

function EmptyMethod(){}

function ExceptionHandlerForClient(Exceptionmessage, url, linenumber)
{ 
    var strDescription = url + ' Line Number: ' + linenumber;   
    LogException(Exceptionmessage,strDescription);
}

if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();
