DatadogDatabaseErrorHandler - DataDog/dd-sdk-android GitHub Wiki
class DatadogDatabaseErrorHandler(sdkInstanceName: String? = null, defaultErrorHandler: DatabaseErrorHandler = DefaultDatabaseErrorHandler()) : DatabaseErrorHandler
Provides an implementation of DatadogDatabaseErrorHandler already set up to send relevant information to Datadog.
It will automatically send RUM Error events whenever a Database corruption was signaled. For more information https://www.sqlite.org/howtocorrupt.html
Parameters
sdkInstanceName | the SDK instance name to bind to, or null to check the default instance. Instrumentation won't be working until SDK instance is ready. |
defaultErrorHandler | the corruption error handler, by default it is DefaultDatabaseErrorHandler. |
Constructors
DatadogDatabaseErrorHandler
constructor(sdkInstanceName: String? = null, defaultErrorHandler: DatabaseErrorHandler = DefaultDatabaseErrorHandler())
Parameters
sdkInstanceName | the SDK instance name to bind to, or null to check the default instance. Instrumentation won't be working until SDK instance is ready. |
defaultErrorHandler | the corruption error handler, by default it is DefaultDatabaseErrorHandler. |
Functions
onCorruption
open override fun onCorruption(dbObj: SQLiteDatabase)