Beispiel #1
0
        protected override bool ProceedInvokeException(Exception exception, out Toolkit.Events.ActionResult errorInfo)
        {
            CommunicationException communicationException = exception as CommunicationException;

            if (communicationException != null)
            {
                errorInfo = ActionResult.GetErrorResult(communicationException);
                return(true);
            }
            TimeoutException timeoutException = exception as TimeoutException;

            if (timeoutException != null)
            {
                errorInfo = ActionResult.GetErrorResult(timeoutException);
                return(true);
            }
            WebException webException = exception as WebException;

            if (webException != null)
            {
                errorInfo = ActionResult.GetErrorResult(webException);
                return(true);
            }
            errorInfo = ActionResult.ValidResult;
            return(false);
        }
        protected override bool ProceedInvokeException(Exception exception, out Toolkit.Events.ActionResult errorInfo)
        {
            MobileServiceInvalidOperationException mobileServiceInvalidOperationException = exception as MobileServiceInvalidOperationException;

            if (mobileServiceInvalidOperationException != null)
            {
                errorInfo = ActionResult.GetErrorResult(mobileServiceInvalidOperationException);
                return(true);
            }
            MobileServicePreconditionFailedException mobileServicePreconditionFailedException = exception as MobileServicePreconditionFailedException;

            if (mobileServicePreconditionFailedException != null)
            {
                errorInfo = ActionResult.GetErrorResult(mobileServicePreconditionFailedException);
                return(true);
            }
            errorInfo = ActionResult.ValidResult;
            return(false);
        }
 protected override bool ProceedConnectionException(Exception exception, out Toolkit.Events.ActionResult errorInfo)
 {
     errorInfo = ActionResult.GetErrorResult(exception);
     return(true);
 }