InstallException

public class InstallException
extends CanceledException

java.lang.Object
   ↳ com.android.ddmlib.CanceledException
     ↳ com.android.ddmlib.InstallException


Thrown if installation or uninstallation of application fails.

Summary

Public constructors

InstallException(String message)
InstallException(String message, String errorCode)
InstallException(String message, Throwable cause)
InstallException(Throwable cause)

Public methods

String getErrorCode()
boolean wasCanceled()

Returns true if the installation was canceled by user input.

Public constructors

InstallException

public InstallException (String message)

Parameters
message String

InstallException

public InstallException (String message, 
                String errorCode)

Parameters
message String

errorCode String

InstallException

public InstallException (String message, 
                Throwable cause)

Parameters
message String

cause Throwable

InstallException

public InstallException (Throwable cause)

Parameters
cause Throwable

Public methods

getErrorCode

public String getErrorCode ()

Returns
String

wasCanceled

public boolean wasCanceled ()

Returns true if the installation was canceled by user input. This can typically only happen in the sync phase.

Returns
boolean