MigrationException


public final class MigrationException
extends Exception

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ android.app.privatecompute.MigrationException


Exception thrown when a migration request fails.

Summary

Constants

int ERROR_INVOCATION_FAILED

The migration request failed due to an invocation error.

int ERROR_TIMEOUT

The migration request failed due to a timeout.

Public constructors

MigrationException(int errorCode, String message)

Public methods

int getErrorCode()

Returns the error code associated with this exception.

Inherited methods

Constants

ERROR_INVOCATION_FAILED

Added in API level 37
public static final int ERROR_INVOCATION_FAILED

The migration request failed due to an invocation error.

Constant Value: 1 (0x00000001)

ERROR_TIMEOUT

Added in API level 37
public static final int ERROR_TIMEOUT

The migration request failed due to a timeout.

Constant Value: 2 (0x00000002)

Public constructors

MigrationException

Added in API level 37
public MigrationException (int errorCode, 
                String message)

Parameters
errorCode int: Value is one of the following:
message String: This value may be null.

Public methods

getErrorCode

Added in API level 37
public int getErrorCode ()

Returns the error code associated with this exception.

Returns
int Value is one of the following: