Skip to content

Commit e987ee3

Browse files
committed
Revert "Add methods to android sdk layer for reporting errors"
This reverts commit ce9ad0c.
1 parent ce9ad0c commit e987ee3

File tree

1 file changed

+1
-33
lines changed

1 file changed

+1
-33
lines changed

library/src/main/java/com/mux/stats/sdk/muxstats/MuxDataSdk.kt

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ import com.mux.stats.sdk.core.MuxSDKViewOrientation
2121
import com.mux.stats.sdk.core.events.EventBus
2222
import com.mux.stats.sdk.core.events.IEvent
2323
import com.mux.stats.sdk.core.events.IEventDispatcher
24-
import com.mux.stats.sdk.core.events.playback.ErrorEvent
25-
import com.mux.stats.sdk.core.events.playback.ErrorEvent.ErrorSeverity
2624
import com.mux.stats.sdk.core.model.*
2725
import com.mux.stats.sdk.core.util.MuxLogger
26+
import com.mux.stats.sdk.muxstats.MuxDataSdk.AndroidDevice
2827
import kotlinx.coroutines.CoroutineScope
2928
import kotlinx.coroutines.Dispatchers
3029
import org.json.JSONObject
@@ -138,37 +137,6 @@ abstract class MuxDataSdk<Player, PlayerView : View> @JvmOverloads protected con
138137
*/
139138
open fun error(exception: MuxErrorException) = muxStats.error(exception)
140139

141-
/**
142-
* Report an error to the dashboard for this view. If the error is recoverable, you can set its
143-
* severity to [ErrorEvent.ErrorSeverity.WARNING]. If it's related to your application logic
144-
* and not playback, you can flag that as well
145-
*
146-
* @param code An error code from your player.
147-
* @param message a message describing the error
148-
* @param errorContext additional context, such as a stack trace, related to this error
149-
*/
150-
open fun error(code: String,
151-
message: String?,
152-
errorContext: String) =
153-
muxStats.error(code, message , errorContext)
154-
/**
155-
* Report an error to the dashboard for this view. If the error is recoverable, you can set its
156-
* severity to [ErrorEvent.ErrorSeverity.WARNING]. If it's related to your application logic
157-
* and not playback, you can flag that as well
158-
*
159-
* @param code An error code from your player.
160-
* @param message a message describing the error
161-
* @param errorContext additional context, such as a stack trace, related to this error
162-
* @param errorSeverity The severity of the error. Errors can be fatal or warnings
163-
* @param isBusinessException True if the error is related to app logic (eg, expired subscription)
164-
*/
165-
open fun error(code: String,
166-
message: String?,
167-
errorContext: String,
168-
errorSeverity: ErrorSeverity = ErrorSeverity.FATAL,
169-
isBusinessException: Boolean = false) =
170-
muxStats.error(code, message , errorContext, errorSeverity, isBusinessException)
171-
172140
/**
173141
* Change the player [View] this object observes.
174142
*/

0 commit comments

Comments
 (0)