public class

AppManagerException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.datalogic.device.app.AppManagerException

Class Overview

This exception is used for AppManager related errors.

Summary

Constants
int APK_NOT_FOUND App not found.
int EMPTY_LIST The passed list is empty.
int GENERIC_ERROR Generic error, mostly due to a wrong parameter passed to a SDK method.
int INSTALLER_SERVICE_ERROR Installer Service error.
int INVALID_ARGUMENT_ERROR Invalid argument error.
int IO_ERROR IO exception.
int NOT_INSTALLED The application is not installed.
int NO_PERMISSIONS_TO_BE_GRANTED There are no permissions declared to be granted.
int NULL_POINTER_ERROR Null pointer error.
int PACKAGE_NOT_FOUND_ERROR Package not found error.
int PERMISSION_NOT_GRANTED_ERROR There are no permissions declared to be granted.
int REMOTE_CALL_ERROR It's not possible to call the remote service.
int SECURITY_ERROR Security exception.
int SESSION_PARAM_ERROR IllegalArgumentException exception.
int SUCCESS Success constant.
int UNBOUND_SERVICE Remote service not bound.
Fields
public int error_number The error number returned by the Installer's system services.
Public Constructors
AppManagerException()
Constructs an AppManagerException object.
AppManagerException(String s)
Constructs an GENERIC_ERROR AppManagerException object.
AppManagerException(String s, int number)
Constructs an AppManagerException object that takes a int parameter containing the reason the exception was thrown.
AppManagerException(int number)
Constructs an AppManagerException object that takes a int parameter containing the reason the exception was thrown.
Public Methods
static String stringifyCode(int number)
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Constants

public static final int APK_NOT_FOUND

Added in revision 25

App not found.

Constant Value: -3866602 (0xffc50016)

public static final int EMPTY_LIST

Added in revision 25

The passed list is empty.

Constant Value: -3866613 (0xffc5000b)

public static final int GENERIC_ERROR

Added in revision 25

Generic error, mostly due to a wrong parameter passed to a SDK method.

Constant Value: -3866621 (0xffc50003)

public static final int INSTALLER_SERVICE_ERROR

Added in revision 25

Installer Service error.

Constant Value: -3866623 (0xffc50001)

public static final int INVALID_ARGUMENT_ERROR

Added in revision 28

Invalid argument error.

Constant Value: -3866597 (0xffc5001b)

public static final int IO_ERROR

Added in revision 25

IO exception.

Constant Value: -3866617 (0xffc50007)

public static final int NOT_INSTALLED

Added in revision 25

The application is not installed.

Constant Value: -3866614 (0xffc5000a)

public static final int NO_PERMISSIONS_TO_BE_GRANTED

Added in revision 28

There are no permissions declared to be granted.

Constant Value: -3866595 (0xffc5001d)

public static final int NULL_POINTER_ERROR

Added in revision 25

Null pointer error.

Constant Value: -3866622 (0xffc50002)

public static final int PACKAGE_NOT_FOUND_ERROR

Added in revision 28

Package not found error.

Constant Value: -3866596 (0xffc5001c)

public static final int PERMISSION_NOT_GRANTED_ERROR

Added in revision 28

There are no permissions declared to be granted.

Constant Value: -3866582 (0xffc5002a)

public static final int REMOTE_CALL_ERROR

Added in revision 25

It's not possible to call the remote service.

Constant Value: -3866620 (0xffc50004)

public static final int SECURITY_ERROR

Added in revision 25

Security exception.

Constant Value: -3866616 (0xffc50008)

public static final int SESSION_PARAM_ERROR

Added in revision 25

IllegalArgumentException exception.

Constant Value: -3866615 (0xffc50009)

public static final int SUCCESS

Added in revision 25

Success constant.

Constant Value: 0 (0x00000000)

public static final int UNBOUND_SERVICE

Added in revision 25

Remote service not bound.

Constant Value: -3866601 (0xffc50017)

Fields

public int error_number

Added in revision 25

The error number returned by the Installer's system services.

Public Constructors

public AppManagerException ()

Added in revision 25

Constructs an AppManagerException object.

public AppManagerException (String s)

Added in revision 25

Constructs an GENERIC_ERROR AppManagerException object. The String parameter is concatenated to the exception message.

Parameters
s String String concatenated to the error message.

public AppManagerException (String s, int number)

Added in revision 25

Constructs an AppManagerException object that takes a int parameter containing the reason the exception was thrown. The String prameter is concatenated to the exception message.

Parameters
s String String concatenated to the error message.
number int indicating the error code number.

public AppManagerException (int number)

Added in revision 25

Constructs an AppManagerException object that takes a int parameter containing the reason the exception was thrown.

Parameters
number int indicating the error code number.

Public Methods

public static String stringifyCode (int number)

Added in revision 25