public void GetEventPageFailureCallback(WebServiceError error, object userContext, string methodName) { //Script.Alert(error.Message); if (GotGenericException != null) GotGenericException(this, new GotExceptionEventArgs(error, methodName)); }
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(); }
public GotExceptionEventArgs(WebServiceError error, string method) { Error = error; Method = method; }
private void failureCallback2(WebServiceError error, object userContext, string methodName) { this.webRequest = null; this.failureCallback(error, userContext, methodName); }
private void failureCallback(WebServiceError error, object userContext, string methodName) { Trace.WebServiceFailure(error, userContext, methodName); this.noDataRetrievedCallback(); }
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) { }
private void deleteCommentFailure(WebServiceError error, object context, string methodName) { Misc.HideWaitingCursor(); }
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)); } }
public void ForceResetSessionAndGetStateFailureCallback(WebServiceError error, object userContext, string methodName) { if (GotGenericException != null) GotGenericException(this, new GotExceptionEventArgs(error, methodName)); continueProcessingCriticalRequestQueue(); }
public void StoreUpdatedRoomListOrderFailureCallback(WebServiceError error, object userContext, string methodName) { if (GotGenericException != null) GotGenericException(this, new GotExceptionEventArgs(error, methodName)); continueProcessingCriticalRequestQueue(); }