Since: API level 15
public class

VpnErrorValues

extends Object
java.lang.Object
   ↳ com.samsung.android.knox.net.vpn.VpnErrorValues

Class Overview

The class provides the list of error codes which will be returned by API's in GenericVpnPolicy.

Since
API level 15
KNOX 2.4

Summary

Constants
int ERROR_ADD_PER_APP_VPN_FAILED_USER_VPN_DIFFERENT_ADMIN The administrator is trying to add an application to per-app VPN for a VPN profile, but different administrator has added a user VPN in the same user space.
int ERROR_ADD_PER_APP_VPN_FAILED_USER_VPN_SAME_ADMIN The administrator is trying to add an application to per-app VPN for a VPN profile, but the same administrator has added a user VPN in the same user space for the same or different profile.
int ERROR_ADD_USER_VPN_FAILED_PER_APP_VPN_ACTIVATED The administrator is trying to add user VPN for a profile, but the same administrator has added a per-app VPN for the same or different profile in the same user space.
int ERROR_ADMIN_NOT_CONTAINER_OWNER Administrator is not the owner of the container.
int ERROR_API_NOT_APPLICABLE_SYSTEM_PROFILE API is not applicable for profile of system type, almost all the API except from createVpnProfile(String).
int ERROR_APP_UID_ADDED_DIFFERENT_PROFILE The error will be thrown if the applications UID has been added (although with a different package name) in a different profile.
int ERROR_CHAINING_FEATURE_NOT_SUPPORTED The error will be thrown if a profile belonging to a VPN vendor has enabled normal VPN, then cannot use chaining feature.
int ERROR_CONNECTION_TYPE_VALUE The administrator is trying to add an invalid connection type value, other than ondemand and keepon.
int ERROR_INVALID_CHAINING_VALUE Invalid chaining value is entered by the administrator.
int ERROR_INVALID_CHAR_PROFILE_NAME The profile name contains invalid characters like whitespace.
int ERROR_INVALID_CONTAINER_ID The container id entered by the administrator is an invalid id.
int ERROR_INVALID_JSON_FORMAT The JSON format entered by the administrator is in invalid format.
int ERROR_INVALID_PROFILE_PARAMETERS The JSON string entered by the administrator does not contain mandatory info required by the framework like the vpn_type, vpn_route_type, protocol_type.
int ERROR_INVALID_PROXY_CONFIGURATION Error occurred due to invalid proxy configuration.
int ERROR_INVALID_UID_PID_VALUE The administrator is trying to add an invalid uidpid_search_enabled value, other than 0 and 1.
int ERROR_INVALID_USB_TETHERING_CONFIGURATION Error occured due to Invalid usb-tethering configuration;

Additional Info:
The error could occur due to the following profile misconfiguration;

The profile is either an on-demand profile or a chaining profile with value 0 or if uid/pid tagging feature is enabled;

Another profile with usb tethering has been configured by the same admin or different admin;
int ERROR_INVALID_VPN_MODE_VALUE The error will be thrown if invalid VPN mode of operation value is entered.
int ERROR_NON_CHAINED_PROFILE_NOT_STARTED The administrator is trying to start an chained profile without starting the non-chained profile.
int ERROR_NULL_PARAMETER The parameter for the API entered by the administrator is of null value which includes the vendor package name.
int ERROR_ON_DEMAND_NOT_SUPPORTED The administrator provided configuration does not support on-demand feature.
int ERROR_PACKAGE_NOT_OWNED_PROFILE The application is not currently owned by the profile.
int ERROR_PACKAGE_NOT_PRESENT_DEVICE The administrator is trying to remove an application which is not present in the device.
int ERROR_PACKAGE_WITH_BLANK Package name entered by the administrator is invalid.
int ERROR_PER_APP_PACKAGE_ADDED_DIFFERENT_ADMIN The administrator is trying to add application to a profile, but the application is already added to a profile by different administrator.
int ERROR_PER_APP_PACKAGE_ADDED_SAME_ADMIN The administrator is trying to add application to a profile, but the application is already added to the same or different profile by the same administrator.
int ERROR_PROFILE_ALREADY_ACTIVATED The administrator is trying to activate a profile which is already in activated state.
int ERROR_PROFILE_ALREADY_DEACTIVATED The administrator is trying to de-activate a profile which is already in de-activated state.
int ERROR_PROFILE_NAME_EXISTS_DIFFERENT_ADMIN The administrator is trying to create a VPN profile, but it already exists in the device and it is created by a different administrator.
int ERROR_PROFILE_NAME_EXISTS_SAME_ADMIN The administrator is trying to create a VPN profile, but it already exists in the device and it is created by the same administrator.
int ERROR_PROFILE_NAME_MAX_LENGTH The profile name has length has exceeded the maximum of 128 characters.
int ERROR_PROFILE_NAME_NOT_EXIST_DEVICE The profile name entered by the administrator does not exist in the device.
int ERROR_PROXY_FEATURE_NOT_SUPPORTED The administrator provided configuration does not support proxy feature.
int ERROR_REMOVE_PER_APP_VPN_FAILED_USER_VPN_DIFFERENT_ADMIN The administrator is trying to remove a application from a per-app VPN profile, but a different administrator has added a user VPN in the same user space.
int ERROR_REMOVE_PER_APP_VPN_FAILED_USER_VPN_SAME_ADMIN The administrator is trying to remove a application from a per-app VPN profile, but the same administrator has added a user VPN in the same user space for the same or different profile.
int ERROR_REMOVE_PROFILE_ACTIVATED_STATE The administrator is trying to remove a profile which is in activated state.
int ERROR_REMOVE_USER_VPN_FAILED_PER_APP_VPN_ACTIVATED The administrator is trying to remove user VPN for a profile, but the same administrator has added a per-app VPN for the same or different profile in the same user space.
int ERROR_STORING_PROXY_PASSWORD Error occurred due to failure in saving the proxy server password credentials in TIMA Keystore.
int ERROR_STORING_PROXY_USERNAME Error occurred due to failure in saving the proxy server username credentials in TIMA Keystore.
int ERROR_USER_VPN_ALREADY_ACTIVATED_DIFFERENT_ADMIN The administrator is trying to create a user VPN for a profile, but some other administrator has already created user VPN for the user space.
int ERROR_USER_VPN_ALREADY_ACTIVATED_SAME_ADMIN The administrator is trying to create a user VPN for a profile, but the same administrator has already created user VPN for the same or different profile.
int ERROR_VENDOR_ENABLED_CHAINING The error will be thrown if a profile belonging to a VPN vendor has enabled chaining, then cannot create other VPN profiles.
int ERROR_VENDOR_ENABLED_VPN The error will be thrown if a profile belonging to a VPN vendor has enabled normal VPN, then cannot use chaining feature.
int ERROR_VENDOR_ERROR Vendor has returned an error indicating that the call to the API was not successful.
int ERROR_VPN_SERVICE_NOT_STARTED Error in starting the VPN service.
int OPERATION_NOT_ALLOWED_FOR_VENDOR The error will be thrown if vendor is not allowed to perform the attempted operattion.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int ERROR_ADD_PER_APP_VPN_FAILED_USER_VPN_DIFFERENT_ADMIN

Since: API level 15

The administrator is trying to add an application to per-app VPN for a VPN profile, but different administrator has added a user VPN in the same user space.

Since
API level 15
KNOX 2.4
Constant Value: 120 (0x00000078)

public static final int ERROR_ADD_PER_APP_VPN_FAILED_USER_VPN_SAME_ADMIN

Since: API level 15

The administrator is trying to add an application to per-app VPN for a VPN profile, but the same administrator has added a user VPN in the same user space for the same or different profile.

Since
API level 15
KNOX 2.4
Constant Value: 119 (0x00000077)

public static final int ERROR_ADD_USER_VPN_FAILED_PER_APP_VPN_ACTIVATED

Since: API level 15

The administrator is trying to add user VPN for a profile, but the same administrator has added a per-app VPN for the same or different profile in the same user space.

Since
API level 15
KNOX 2.4
Constant Value: 123 (0x0000007b)

public static final int ERROR_ADMIN_NOT_CONTAINER_OWNER

Since: API level 15

Administrator is not the owner of the container.

Since
API level 15
KNOX 2.4
Constant Value: 114 (0x00000072)

public static final int ERROR_API_NOT_APPLICABLE_SYSTEM_PROFILE

Since: API level 15

API is not applicable for profile of system type, almost all the API except from createVpnProfile(String).

Since
API level 15
KNOX 2.4
Constant Value: 109 (0x0000006d)

public static final int ERROR_APP_UID_ADDED_DIFFERENT_PROFILE

Since: API level 20

The error will be thrown if the applications UID has been added (although with a different package name) in a different profile.

Since
API level 20
KNOX 2.7
Constant Value: 139 (0x0000008b)

public static final int ERROR_CHAINING_FEATURE_NOT_SUPPORTED

Since: API level 15

The error will be thrown if a profile belonging to a VPN vendor has enabled normal VPN, then cannot use chaining feature.

Since
API level 15
KNOX 2.4
Constant Value: 505 (0x000001f9)

public static final int ERROR_CONNECTION_TYPE_VALUE

Since: API level 15

The administrator is trying to add an invalid connection type value, other than ondemand and keepon.

Since
API level 15
KNOX 2.4
Constant Value: 701 (0x000002bd)

public static final int ERROR_INVALID_CHAINING_VALUE

Since: API level 15

Invalid chaining value is entered by the administrator.

Since
API level 15
KNOX 2.4
Constant Value: 501 (0x000001f5)

public static final int ERROR_INVALID_CHAR_PROFILE_NAME

Since: API level 15

The profile name contains invalid characters like whitespace.

Since
API level 15
KNOX 2.4
Constant Value: 106 (0x0000006a)

public static final int ERROR_INVALID_CONTAINER_ID

Since: API level 15

The container id entered by the administrator is an invalid id.

Since
API level 15
KNOX 2.4
Constant Value: 113 (0x00000071)

public static final int ERROR_INVALID_JSON_FORMAT

Since: API level 15

The JSON format entered by the administrator is in invalid format.

Since
API level 15
KNOX 2.4
Constant Value: 103 (0x00000067)

public static final int ERROR_INVALID_PROFILE_PARAMETERS

Since: API level 15

The JSON string entered by the administrator does not contain mandatory info required by the framework like the vpn_type, vpn_route_type, protocol_type.

Since
API level 15
KNOX 2.4
Constant Value: 105 (0x00000069)

public static final int ERROR_INVALID_PROXY_CONFIGURATION

Since: API level 18

Error occurred due to invalid proxy configuration.

Since
API level 18
KNOX 2.5.1
Constant Value: 804 (0x00000324)

public static final int ERROR_INVALID_UID_PID_VALUE

Since: API level 15

The administrator is trying to add an invalid uidpid_search_enabled value, other than 0 and 1.

Since
API level 15
KNOX 2.4
Constant Value: 601 (0x00000259)

public static final int ERROR_INVALID_USB_TETHERING_CONFIGURATION

Since: API level 32

Error occured due to Invalid usb-tethering configuration;

Additional Info:
The error could occur due to the following profile misconfiguration;

The profile is either an on-demand profile or a chaining profile with value 0 or if uid/pid tagging feature is enabled;

Another profile with usb tethering has been configured by the same admin or different admin;

Since
KNOX 3.5
Constant Value: 901 (0x00000385)

public static final int ERROR_INVALID_VPN_MODE_VALUE

Since: API level 15

The error will be thrown if invalid VPN mode of operation value is entered.

Since
API level 15
KNOX 2.4
Constant Value: 138 (0x0000008a)

public static final int ERROR_NON_CHAINED_PROFILE_NOT_STARTED

Since: API level 15

The administrator is trying to start an chained profile without starting the non-chained profile.

Since
API level 15
KNOX 2.4
Constant Value: 502 (0x000001f6)

public static final int ERROR_NULL_PARAMETER

Since: API level 15

The parameter for the API entered by the administrator is of null value which includes the vendor package name.

Since
API level 15
KNOX 2.4
Constant Value: 104 (0x00000068)

public static final int ERROR_ON_DEMAND_NOT_SUPPORTED

Since: API level 15

The administrator provided configuration does not support on-demand feature.

Since
API level 15
KNOX 2.4
Constant Value: 702 (0x000002be)

public static final int ERROR_PACKAGE_NOT_OWNED_PROFILE

Since: API level 15

The application is not currently owned by the profile.

Since
API level 15
KNOX 2.4
Constant Value: 129 (0x00000081)

public static final int ERROR_PACKAGE_NOT_PRESENT_DEVICE

Since: API level 15

The administrator is trying to remove an application which is not present in the device.

Since
API level 15
KNOX 2.4
Constant Value: 128 (0x00000080)

public static final int ERROR_PACKAGE_WITH_BLANK

Since: API level 15

Package name entered by the administrator is invalid.

Since
API level 15
KNOX 2.4
Constant Value: 134 (0x00000086)

public static final int ERROR_PER_APP_PACKAGE_ADDED_DIFFERENT_ADMIN

Since: API level 15

The administrator is trying to add application to a profile, but the application is already added to a profile by different administrator.

Since
API level 15
KNOX 2.4
Constant Value: 136 (0x00000088)

public static final int ERROR_PER_APP_PACKAGE_ADDED_SAME_ADMIN

Since: API level 15

The administrator is trying to add application to a profile, but the application is already added to the same or different profile by the same administrator.

Since
API level 15
KNOX 2.4
Constant Value: 135 (0x00000087)

public static final int ERROR_PROFILE_ALREADY_ACTIVATED

Since: API level 15

The administrator is trying to activate a profile which is already in activated state.

Since
API level 15
KNOX 2.4
Constant Value: 115 (0x00000073)

public static final int ERROR_PROFILE_ALREADY_DEACTIVATED

Since: API level 15

The administrator is trying to de-activate a profile which is already in de-activated state.

Since
API level 15
KNOX 2.4
Constant Value: 116 (0x00000074)

public static final int ERROR_PROFILE_NAME_EXISTS_DIFFERENT_ADMIN

Since: API level 15

The administrator is trying to create a VPN profile, but it already exists in the device and it is created by a different administrator.

Since
API level 15
KNOX 2.4
Constant Value: 112 (0x00000070)

public static final int ERROR_PROFILE_NAME_EXISTS_SAME_ADMIN

Since: API level 15

The administrator is trying to create a VPN profile, but it already exists in the device and it is created by the same administrator.

Since
API level 15
KNOX 2.4
Constant Value: 111 (0x0000006f)

public static final int ERROR_PROFILE_NAME_MAX_LENGTH

Since: API level 15

The profile name has length has exceeded the maximum of 128 characters.

Since
API level 15
KNOX 2.4
Constant Value: 107 (0x0000006b)

public static final int ERROR_PROFILE_NAME_NOT_EXIST_DEVICE

Since: API level 15

The profile name entered by the administrator does not exist in the device.

Since
API level 15
KNOX 2.4
Constant Value: 108 (0x0000006c)

public static final int ERROR_PROXY_FEATURE_NOT_SUPPORTED

Since: API level 17

The administrator provided configuration does not support proxy feature.

Since
API level 17
KNOX 2.5
Constant Value: 801 (0x00000321)

public static final int ERROR_REMOVE_PER_APP_VPN_FAILED_USER_VPN_DIFFERENT_ADMIN

Since: API level 15

The administrator is trying to remove a application from a per-app VPN profile, but a different administrator has added a user VPN in the same user space.

Since
API level 15
KNOX 2.4
Constant Value: 122 (0x0000007a)

public static final int ERROR_REMOVE_PER_APP_VPN_FAILED_USER_VPN_SAME_ADMIN

Since: API level 15

The administrator is trying to remove a application from a per-app VPN profile, but the same administrator has added a user VPN in the same user space for the same or different profile.

Since
API level 15
KNOX 2.4
Constant Value: 121 (0x00000079)

public static final int ERROR_REMOVE_PROFILE_ACTIVATED_STATE

Since: API level 15

The administrator is trying to remove a profile which is in activated state.

Since
API level 15
KNOX 2.4
Constant Value: 125 (0x0000007d)

public static final int ERROR_REMOVE_USER_VPN_FAILED_PER_APP_VPN_ACTIVATED

Since: API level 15

The administrator is trying to remove user VPN for a profile, but the same administrator has added a per-app VPN for the same or different profile in the same user space.

Since
API level 15
KNOX 2.4
Constant Value: 124 (0x0000007c)

public static final int ERROR_STORING_PROXY_PASSWORD

Since: API level 17

Error occurred due to failure in saving the proxy server password credentials in TIMA Keystore.

Since
API level 17
KNOX 2.5
Constant Value: 803 (0x00000323)

public static final int ERROR_STORING_PROXY_USERNAME

Since: API level 17

Error occurred due to failure in saving the proxy server username credentials in TIMA Keystore.

Since
API level 17
KNOX 2.5
Constant Value: 802 (0x00000322)

public static final int ERROR_USER_VPN_ALREADY_ACTIVATED_DIFFERENT_ADMIN

Since: API level 15

The administrator is trying to create a user VPN for a profile, but some other administrator has already created user VPN for the user space.

Since
API level 15
KNOX 2.4
Constant Value: 118 (0x00000076)

public static final int ERROR_USER_VPN_ALREADY_ACTIVATED_SAME_ADMIN

Since: API level 15

The administrator is trying to create a user VPN for a profile, but the same administrator has already created user VPN for the same or different profile.

Since
API level 15
KNOX 2.4
Constant Value: 117 (0x00000075)

public static final int ERROR_VENDOR_ENABLED_CHAINING

Since: API level 15

The error will be thrown if a profile belonging to a VPN vendor has enabled chaining, then cannot create other VPN profiles.

Since
API level 15
KNOX 2.4
Constant Value: 503 (0x000001f7)

public static final int ERROR_VENDOR_ENABLED_VPN

Since: API level 15

The error will be thrown if a profile belonging to a VPN vendor has enabled normal VPN, then cannot use chaining feature.

Since
API level 15
KNOX 2.4
Constant Value: 504 (0x000001f8)

public static final int ERROR_VENDOR_ERROR

Since: API level 15

Vendor has returned an error indicating that the call to the API was not successful.

Since
API level 15
KNOX 2.4
Constant Value: 102 (0x00000066)

public static final int ERROR_VPN_SERVICE_NOT_STARTED

Since: API level 15

Error in starting the VPN service.

Since
API level 15
KNOX 2.4
Constant Value: 110 (0x0000006e)

public static final int OPERATION_NOT_ALLOWED_FOR_VENDOR

Since: API level 30

The error will be thrown if vendor is not allowed to perform the attempted operattion.

Since
API level 30
KNOX 3.4.1
Constant Value: 140 (0x0000008c)