Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39ca0937 authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

add reportException

parent 99c625a7
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -84,6 +84,17 @@ object Telemetry {
        Sentry.captureMessage(message, level)
    }

    /**
     * Report an exception.
     * Generally called from catch block of try-catch.
     *
     * @param e: The exception to report.
     */
    @JvmStatic
    fun reportException(e: Exception) {
        Sentry.captureException(e)
    }

    @Deprecated(
        "Use isReportingTelemetry()",
        ReplaceWith("isReportingTelemetry()"),