Exemple #1
0
		public void GetEventPageFailureCallback(WebServiceError error, object userContext, string methodName)
		{
			//Script.Alert(error.Message);

			if (GotGenericException != null)
				GotGenericException(this, new GotExceptionEventArgs(error, methodName));

		}
Exemple #2
0
		public Error(WebServiceError err, string method, Controller parent, string roomGuid, int serverRequestIndex)
			: base(new ItemStub(Math.Round(Math.Random() * 100000).ToString(), ItemType.Error, "0", roomGuid), parent, serverRequestIndex)
		{
			this.Method = method;
			this.ExceptionType = err.ExceptionType;
			this.Message = err.Message;
			this.StackTrace = err.StackTrace;
			this.TimedOut = err.TimedOut;
			this.StatusCode = err.StatusCode;
		}
		void getThreadCommentsFailure(WebServiceError error, object userContext, string methodName)
		{
			// probably there weren't any comments to retrieve - just set everything to defaults
			pageNumber = 0;
			Comments = null;
			FirstUnreadPage = 0;
			InitialComment = null;
			LastKnownCommentK = 0;
			LastPage = 0;
			TotalComments = 0;
			ViewComments = 0;

			loaded();
		}
Exemple #4
0
		public GotExceptionEventArgs(WebServiceError error, string method)
		{
			Error = error;
			Method = method;
		}
Exemple #5
0
		private void failureCallback2(WebServiceError error, object userContext, string methodName)
		{
			this.webRequest = null;
			this.failureCallback(error, userContext, methodName);
		}
Exemple #6
0
		private void failureCallback(WebServiceError error, object userContext, string methodName)
		{
			Trace.WebServiceFailure(error, userContext, methodName);
			this.noDataRetrievedCallback();
		}
Exemple #7
0
		public static void WebServiceFailure(WebServiceError error, object userContext, string methodName)
		{
			Write("Message: " + error.Message + "<br>Type: " + error.ExceptionType + "<br>Stack trace: " + error.StackTrace + "<br>Status code: " + error.StatusCode + "<br>Timed out: " + error.TimedOut);
		}
		public void FailureCallback(WebServiceError error, object userContext, string methodName) { }
Exemple #9
0
		private void deleteCommentFailure(WebServiceError error, object context, string methodName)
		{
			Misc.HideWaitingCursor();
		}
Exemple #10
0
		public void RefreshFailureCallback(WebServiceError error, object userContext, string methodName)
		{
			cancelCurrentPeriodicBackgroundRefresh = false;
			periodicBackgroundRefreshInProgress = false;

			if (error.ExceptionType.EndsWith("+WrongSessionException"))
			{
				periodicBackgroundRefreshIsPaused = true;
				if (GotWrongSessionException != null)
					GotWrongSessionException(this, new GotExceptionEventArgs(error, methodName));
			}
			else if (error.ExceptionType.EndsWith("+TimeoutException"))
			{
				periodicBackgroundRefreshIsPaused = true;
				if (GotTimeoutException != null)
					GotTimeoutException(this, new GotExceptionEventArgs(error, methodName));
			}
			else
			{
				if (GotGenericException != null)
					GotGenericException(this, new GotExceptionEventArgs(error, methodName));
			}
		}
Exemple #11
0
		public void ForceResetSessionAndGetStateFailureCallback(WebServiceError error, object userContext, string methodName)
		{
			if (GotGenericException != null)
				GotGenericException(this, new GotExceptionEventArgs(error, methodName));

			continueProcessingCriticalRequestQueue();
		}
Exemple #12
0
		public void StoreUpdatedRoomListOrderFailureCallback(WebServiceError error, object userContext, string methodName)
		{
			if (GotGenericException != null)
				GotGenericException(this, new GotExceptionEventArgs(error, methodName));

			continueProcessingCriticalRequestQueue();
		}