diff --git a/parsely/src/main/java/com/parsely/parselyandroid/ParselyNotInitializedException.kt b/parsely/src/main/java/com/parsely/parselyandroid/ParselyNotInitializedException.kt index ca99bc5..1d3d10b 100644 --- a/parsely/src/main/java/com/parsely/parselyandroid/ParselyNotInitializedException.kt +++ b/parsely/src/main/java/com/parsely/parselyandroid/ParselyNotInitializedException.kt @@ -1,3 +1,4 @@ package com.parsely.parselyandroid -public class ParselyNotInitializedException(override val message: String?) : Exception() +public class ParselyNotInitializedException() : + Exception("Parse.ly client has not been initialized. Call ParselyTracker#init before using the SDK.") diff --git a/parsely/src/main/java/com/parsely/parselyandroid/ParselyTracker.kt b/parsely/src/main/java/com/parsely/parselyandroid/ParselyTracker.kt index 0468d58..a09942e 100644 --- a/parsely/src/main/java/com/parsely/parselyandroid/ParselyTracker.kt +++ b/parsely/src/main/java/com/parsely/parselyandroid/ParselyTracker.kt @@ -32,7 +32,7 @@ public object ParselyTracker { private fun ensureInitialized(): ParselyTrackerInternal { return instance ?: run { - throw ParselyNotInitializedException("Parse.ly client has not been initialized. Call ParselyTracker#init before using the SDK."); + throw ParselyNotInitializedException(); } }