Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

例外の再スロー時に stack trace が消えてしまう問題を修正 #134

Merged
merged 1 commit into from
Nov 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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