Added in API level 37

MigrationException


class MigrationException : Exception
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Exception
   ↳ android.app.privatecompute.MigrationException

Exception thrown when a migration request fails.

Summary

Constants
static Int

The migration request failed due to an invocation error.

static Int

The migration request failed due to a timeout.

Public constructors
MigrationException(errorCode: Int, message: String?)

Public methods
Int

Returns the error code associated with this exception.

Constants

ERROR_INVOCATION_FAILED

Added in API level 37
static val ERROR_INVOCATION_FAILED: Int

The migration request failed due to an invocation error.

Value: 1

ERROR_TIMEOUT

Added in API level 37
static val ERROR_TIMEOUT: Int

The migration request failed due to a timeout.

Value: 2

Public constructors

MigrationException

Added in API level 37
MigrationException(
    errorCode: Int,
    message: String?)
Parameters
errorCode Int: Value is one of the following:
message String?: This value may be null.

Public methods

getErrorCode

Added in API level 37
fun getErrorCode(): Int

Returns the error code associated with this exception.

Return
Int Value is one of the following: