Skip to content

Commit

Permalink
suppress detekt TooGenericExceptionThrown
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed May 13, 2024
1 parent c7b166d commit c50c1ca
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
}
}
}
Expand All @@ -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)
}
}
Expand All @@ -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)
}
}
Expand All @@ -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)
}
}
Expand Down

0 comments on commit c50c1ca

Please sign in to comment.