Enum Error
- java.lang.Object
-
- java.lang.Enum<Error>
-
- com.bosch.wdw.Error
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Error>
public enum Error extends java.lang.Enum<Error>
The
Errorrepresents an error thrown by the WDW-SDK.The
WDWClientCallbackreturns several different errors when the behaviour of the WDW-SDK is not as expected. All errors are notified to the application using theWDWClientCallback.onErrorOccured(Error)callback.Whenever an error occurs, the WDW-SDK will stop itself. All of these errors need to be handled by the application.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LocationServiceDisabledTheLocationServiceDisablederror is thrown when the user has disabled the Location service on the device.MissingPermissionTheMissingPermissionerror is thrown when the user did not grant all the permissions that are required by the WDW-SDK.PlayServicesNotAvailableThePlayServicesNotAvailableerror is thrown when the Play services are not available or up-to-date.UnsupportedHardwareTheUnsupportedHardwareerror is thrown when the device does not include GPS hardware.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Error[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MissingPermission
public static final Error MissingPermission
The
MissingPermissionerror is thrown when the user did not grant all the permissions that are required by the WDW-SDK.The following permissions are required by the WDW-SDK:Manifest.permission.ACCESS_FINE_LOCATION
Manifest.permission.INTERNETManifest.permission.ACCESS_NETWORK_STATE
The error may occur on starting the WDW-SDK or in runtime.
-
UnsupportedHardware
public static final Error UnsupportedHardware
The
UnsupportedHardwareerror is thrown when the device does not include GPS hardware.The error may occur on starting the WDW-SDK.
-
LocationServiceDisabled
public static final Error LocationServiceDisabled
The
LocationServiceDisablederror is thrown when the user has disabled the Location service on the device.The error may occur on starting the WDW-SDK or during runtime.
-
PlayServicesNotAvailable
public static final Error PlayServicesNotAvailable
The
PlayServicesNotAvailableerror is thrown when the Play services are not available or up-to-date.The error may occur on starting the WDW-SDK.
-
-
Method Detail
-
values
public static Error[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Error c : Error.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Error valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-