Skip to content

Commit

Permalink
Regression bug introduced in 1dc494e
Browse files Browse the repository at this point in the history
  • Loading branch information
phw198 committed Nov 28, 2020
1 parent 0d5e169 commit e5d5f5d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/OutlookGoogleCalendarSync/GoogleOgcs/Authenticator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ private async Task<bool> getAuthenticated(ClientSecrets cs) {
case Calendar.ApiException.freeAPIexhausted:
OGCSexception.LogAsFail(ref ex);
OGCSexception.Analyse(ex);
System.ApplicationException aex = new System.ApplicationException(Calendar.Instance.SubscriptionInvite);
System.ApplicationException aex = new System.ApplicationException(Calendar.Instance.SubscriptionInvite, ex);
OGCSexception.LogAsFail(ref aex);
authenticated = false;
return authenticated;
Expand Down Expand Up @@ -342,7 +342,7 @@ public Boolean UserSubscriptionCheck() {
case Calendar.ApiException.freeAPIexhausted:
OGCSexception.LogAsFail(ref ex);
OGCSexception.Analyse(ex);
System.ApplicationException aex = new System.ApplicationException(GoogleOgcs.Calendar.Instance.SubscriptionInvite);
System.ApplicationException aex = new System.ApplicationException(GoogleOgcs.Calendar.Instance.SubscriptionInvite, ex);
OGCSexception.LogAsFail(ref aex);
GoogleOgcs.Calendar.Instance.Service = null;
throw aex;
Expand Down
14 changes: 7 additions & 7 deletions src/OutlookGoogleCalendarSync/GoogleOgcs/GoogleCalendar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public List<GoogleCalendarListEntry> GetCalendars() {
case ApiException.freeAPIexhausted:
OGCSexception.LogAsFail(ref ex);
OGCSexception.Analyse(ex);
System.ApplicationException aex = new System.ApplicationException(SubscriptionInvite);
System.ApplicationException aex = new System.ApplicationException(SubscriptionInvite, ex);
OGCSexception.LogAsFail(ref aex);
throw aex;
case ApiException.backoffThenRetry:
Expand Down Expand Up @@ -160,7 +160,7 @@ public List<Event> GetCalendarEntriesInRecurrence(String recurringEventId) {
case ApiException.freeAPIexhausted:
OGCSexception.LogAsFail(ref ex);
OGCSexception.Analyse(ex);
System.ApplicationException aex = new System.ApplicationException(SubscriptionInvite);
System.ApplicationException aex = new System.ApplicationException(SubscriptionInvite, ex);
OGCSexception.LogAsFail(ref aex);
throw aex;
case ApiException.backoffThenRetry:
Expand Down Expand Up @@ -213,7 +213,7 @@ public Event GetCalendarEntry(String eventId) {
case ApiException.freeAPIexhausted:
OGCSexception.LogAsFail(ref ex);
OGCSexception.Analyse(ex);
System.ApplicationException aex = new System.ApplicationException(SubscriptionInvite);
System.ApplicationException aex = new System.ApplicationException(SubscriptionInvite, ex);
OGCSexception.LogAsFail(ref aex);
throw aex;
case ApiException.backoffThenRetry:
Expand Down Expand Up @@ -273,7 +273,7 @@ public List<Event> GetCalendarEntriesInRange(DateTime from, DateTime to) {
case ApiException.freeAPIexhausted:
OGCSexception.LogAsFail(ref ex);
OGCSexception.Analyse(ex);
System.ApplicationException aex = new System.ApplicationException(SubscriptionInvite);
System.ApplicationException aex = new System.ApplicationException(SubscriptionInvite, ex);
OGCSexception.LogAsFail(ref aex);
throw aex;
case ApiException.backoffThenRetry:
Expand Down Expand Up @@ -465,7 +465,7 @@ private Event createCalendarEntry_save(Event ev, AppointmentItem ai) {
case ApiException.freeAPIexhausted:
OGCSexception.LogAsFail(ref ex);
OGCSexception.Analyse(ex);
System.ApplicationException aex = new System.ApplicationException(SubscriptionInvite);
System.ApplicationException aex = new System.ApplicationException(SubscriptionInvite, ex);
OGCSexception.LogAsFail(ref aex);
throw aex;
case ApiException.justContinue: break;
Expand Down Expand Up @@ -843,7 +843,7 @@ public void UpdateCalendarEntry_save(ref Event ev) {
case ApiException.freeAPIexhausted:
OGCSexception.LogAsFail(ref ex);
OGCSexception.Analyse(ex);
System.ApplicationException aex = new System.ApplicationException(SubscriptionInvite);
System.ApplicationException aex = new System.ApplicationException(SubscriptionInvite, ex);
OGCSexception.LogAsFail(ref aex);
throw aex;
case ApiException.backoffThenRetry:
Expand Down Expand Up @@ -937,7 +937,7 @@ private void deleteCalendarEntry_save(Event ev) {
case ApiException.freeAPIexhausted:
OGCSexception.LogAsFail(ref ex);
OGCSexception.Analyse(ex);
System.ApplicationException aex = new System.ApplicationException(SubscriptionInvite);
System.ApplicationException aex = new System.ApplicationException(SubscriptionInvite, ex);
OGCSexception.LogAsFail(ref aex);
throw aex;
case ApiException.backoffThenRetry:
Expand Down

0 comments on commit e5d5f5d

Please sign in to comment.