diff --git a/lib/build.gradle b/lib/build.gradle index d3f59c48b6d2fcb730bc34fcf9ba55a23860576b..7bd2508824497faab8eaaedc7d8b1db27f14ca77 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -6,7 +6,7 @@ plugins { def versionMajor = 0 def versionMinor = 0 -def versionPatch = 8 +def versionPatch = 9 def releasePatch = "alpha" android { diff --git a/lib/src/main/java/foundation/e/lib/telemetry/Telemetry.kt b/lib/src/main/java/foundation/e/lib/telemetry/Telemetry.kt index 008fcc7f2578e19e4bfa561f2ee54f62cd400951..3a31ec0069fde83fb18ac1855e2abd839545b5d1 100644 --- a/lib/src/main/java/foundation/e/lib/telemetry/Telemetry.kt +++ b/lib/src/main/java/foundation/e/lib/telemetry/Telemetry.kt @@ -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()"),