Enum Class Error
- All Implemented Interfaces:
Serializable,Comparable<Error>,Constable
The Error represents an error thrown by the WDW-SDK.
The WDWClientCallback returns several different errors when the behaviour of the WDW-SDK is not as expected.
All errors are notified to the application using the WDWClientCallback.onErrorOccured(Error) callback.
Whenever an error occurs, the WDW-SDK will stop itself. All of these errors need to be handled by the application.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTheLocationServiceDisablederror is thrown when the user has disabled the Location service on the device.TheMissingPermissionerror is thrown when the user did not grant all the permissions that are required by the WDW-SDK.ThePlayServicesNotAvailableerror is thrown when the Play services are not available or up-to-date.TheUnsupportedHardwareerror is thrown when the device does not include GPS hardware. -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
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
The
UnsupportedHardwareerror is thrown when the device does not include GPS hardware.The error may occur on starting the WDW-SDK.
-
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
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 Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-