public class AppManagerException
extends java.lang.RuntimeException
| Modifier and Type | Field and Description |
|---|---|
static int |
APK_NOT_FOUND
App not found.
|
static int |
EMPTY_LIST
The passed list is empty.
|
int |
error_number
The error number returned by the Installer's system services.
|
static int |
GENERIC_ERROR
Generic error, mostly due to a wrong parameter passed to a SDK method.
|
static int |
INSTALLER_SERVICE_ERROR
Installer Service error.
|
static int |
IO_ERROR
IO exception.
|
static int |
NOT_INSTALLED
The application is not installed.
|
static int |
NULL_POINTER_ERROR
Null pointer error.
|
static int |
REMOTE_CALL_ERROR
It's not possible to call the remote service.
|
static int |
SECURITY_ERROR
Security exception.
|
static int |
SESSION_PARAM_ERROR
IllegalArgumentException exception.
|
static int |
SUCCESS
Success constant.
|
static int |
UNBOUND_SERVICE
Remote service not bound.
|
| Constructor and Description |
|---|
AppManagerException()
Constructs an AppManagerException object.
|
AppManagerException(int number)
Constructs an AppManagerException object that takes a
int parameter containing the reason the exception was
thrown. |
AppManagerException(java.lang.String s)
Constructs an GENERIC_ERROR AppManagerException object.
|
AppManagerException(java.lang.String s,
int number)
Constructs an AppManagerException object that takes a
int parameter containing the reason the exception was
thrown. |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
stringifyCode(int number) |
public static final int SUCCESS
public static final int INSTALLER_SERVICE_ERROR
public static final int NULL_POINTER_ERROR
public static final int GENERIC_ERROR
public static final int REMOTE_CALL_ERROR
public static final int IO_ERROR
public static final int SECURITY_ERROR
public static final int SESSION_PARAM_ERROR
public static final int NOT_INSTALLED
public static final int EMPTY_LIST
public static final int APK_NOT_FOUND
public static final int UNBOUND_SERVICE
public int error_number
public AppManagerException()
public AppManagerException(java.lang.String s)
String parameter is concatenated to the exception message.s - String String concatenated to the error message.public AppManagerException(java.lang.String s,
int number)
int parameter containing the reason the exception was
thrown. The String prameter is concatenated to the exception message.s - String String concatenated to the error message.number - int indicating the error code number.public AppManagerException(int number)
int parameter containing the reason the exception was
thrown.number - int indicating the error code number.