Skip to content

Commit

Permalink
Merge pull request #134 from runceel/fix-rethrow-exception
Browse files Browse the repository at this point in the history
例外の再スロー時に stack trace が消えてしまう問題を修正
  • Loading branch information
keiji authored Nov 28, 2021
2 parents 1a62872 + 439640c commit 17209f1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
22 changes: 11 additions & 11 deletions Chino.Android/ExposureNotificationClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void Init(Context applicationContext)
{
throw exception.ToENException();
}
throw exception;
throw;
}
}

Expand Down Expand Up @@ -96,7 +96,7 @@ public override async Task StartAsync()
{
throw exception.ToENException();
}
throw exception;
throw;
}
}

Expand All @@ -119,7 +119,7 @@ public override async Task StopAsync()
{
throw exception.ToENException();
}
throw exception;
throw;
}
}

Expand All @@ -142,7 +142,7 @@ public override async Task<bool> IsEnabledAsync()
{
throw exception.ToENException();
}
throw exception;
throw;
}
}

Expand All @@ -165,7 +165,7 @@ public override async Task<long> GetVersionAsync()
{
throw exception.ToENException();
}
throw exception;
throw;
}
}

Expand All @@ -189,7 +189,7 @@ public override async Task<IList<ExposureNotificationStatus>> GetStatusesAsync()
{
throw exception.ToENException();
}
throw exception;
throw;
}
}

Expand Down Expand Up @@ -302,7 +302,7 @@ public override async Task<ProvideDiagnosisKeysResult> ProvideDiagnosisKeysAsync
{
throw exception.ToENException();
}
throw exception;
throw;
}
}

Expand All @@ -326,7 +326,7 @@ public override async Task<List<TemporaryExposureKey>> GetTemporaryExposureKeyHi
{
throw exception.ToENException();
}
throw exception;
throw;
}
}

Expand Down Expand Up @@ -406,7 +406,7 @@ public override async Task<ProvideDiagnosisKeysResult> ProvideDiagnosisKeysAsync
{
throw exception.ToENException();
}
throw exception;
throw;
}
}
#pragma warning restore CS0618 // Type or member is obsolete
Expand All @@ -430,7 +430,7 @@ public override async Task RequestPreAuthorizedTemporaryExposureKeyHistoryAsync(
{
throw exception.ToENException();
}
throw exception;
throw;
}
}

Expand Down Expand Up @@ -495,7 +495,7 @@ public override async Task RequestPreAuthorizedTemporaryExposureKeyReleaseAsync(
{
throw exception.ToENException();
}
throw exception;
throw;
}
finally
{
Expand Down
4 changes: 2 additions & 2 deletions Chino.Android/ExposureStateBroadcastReceiver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public override bool OnStartJob(JobParameters @params)
else
{
handler.ExceptionOccurred(exception);
throw exception;
throw;
}
}
finally
Expand Down Expand Up @@ -307,7 +307,7 @@ public override bool OnStartJob(JobParameters @params)
else
{
handler.ExceptionOccurred(exception);
throw exception;
throw;
}
}
finally
Expand Down
18 changes: 9 additions & 9 deletions Chino.iOS/ExposureNotificationClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public async Task ActivateAsync()
{
throw exception.ToENException();
}
throw exception;
throw;
}
finally
{
Expand Down Expand Up @@ -108,7 +108,7 @@ public async override Task StartAsync()
{
throw exception.ToENException();
}
throw exception;
throw;
}
}

Expand All @@ -126,7 +126,7 @@ public async override Task StopAsync()
{
throw exception.ToENException();
}
throw exception;
throw;
}
}

Expand All @@ -144,7 +144,7 @@ public async override Task<bool> IsEnabledAsync()
{
throw exception.ToENException();
}
throw exception;
throw;
}
}

Expand All @@ -171,7 +171,7 @@ public async override Task<IList<ExposureNotificationStatus>> GetStatusesAsync()
{
throw exception.ToENException();
}
throw exception;
throw;
}
}

Expand All @@ -198,7 +198,7 @@ public async override Task<List<TemporaryExposureKey>> GetTemporaryExposureKeyHi
{
throw exception.ToENException();
}
throw exception;
throw;
}
}

Expand Down Expand Up @@ -358,7 +358,7 @@ out NSProgress result
else
{
Handler.ExceptionOccurred(exception);
throw exception;
throw;
}
}
finally
Expand Down Expand Up @@ -452,7 +452,7 @@ public override async Task RequestPreAuthorizedTemporaryExposureKeyHistoryAsync(
{
throw exception.ToENException();
}
throw exception;
throw;
}
}

Expand All @@ -476,7 +476,7 @@ public override async Task RequestPreAuthorizedTemporaryExposureKeyReleaseAsync(
{
throw exception.ToENException();
}
throw exception;
throw;
}
}
}
Expand Down

0 comments on commit 17209f1

Please sign in to comment.