From c50c1caff5dd975700b66817cc9795b6a3686648 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Mon, 13 May 2024 20:12:06 +0200 Subject: [PATCH] suppress detekt TooGenericExceptionThrown --- .../io/sentry/flutter/SentryFlutterReplayRecorder.kt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterReplayRecorder.kt b/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterReplayRecorder.kt index cf19b3e675..f18aac3447 100644 --- a/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterReplayRecorder.kt +++ b/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterReplayRecorder.kt @@ -8,7 +8,6 @@ import io.sentry.android.replay.Recorder import io.sentry.android.replay.ReplayIntegration import io.sentry.android.replay.ScreenshotRecorderConfig -@Suppress("TooGenericExceptionThrown") internal class SentryFlutterReplayRecorder( private val channel: MethodChannel, private val integration: ReplayIntegration, @@ -30,8 +29,8 @@ internal class SentryFlutterReplayRecorder( "frameRate" to config.frameRate, ), ) - } catch (e: Exception) { - Log.w("Sentry", "Failed to start replay recorder", e) + } catch (ignored: Exception) { + Log.w("Sentry", "Failed to start replay recorder", ignored) } } } @@ -40,7 +39,7 @@ internal class SentryFlutterReplayRecorder( Handler(Looper.getMainLooper()).post { try { channel.invokeMethod("ReplayRecorder.resume", null) - } catch (e: Exception) { + } catch (ignored: Exception) { Log.w("Sentry", "Failed to resume replay recorder", e) } } @@ -50,7 +49,7 @@ internal class SentryFlutterReplayRecorder( Handler(Looper.getMainLooper()).post { try { channel.invokeMethod("ReplayRecorder.pause", null) - } catch (e: Exception) { + } catch (ignored: Exception) { Log.w("Sentry", "Failed to pause replay recorder", e) } } @@ -60,7 +59,7 @@ internal class SentryFlutterReplayRecorder( Handler(Looper.getMainLooper()).post { try { channel.invokeMethod("ReplayRecorder.stop", null) - } catch (e: Exception) { + } catch (ignored: Exception) { Log.w("Sentry", "Failed to stop replay recorder", e) } }