Package com.bosch.wdw

Enum Class Error

java.lang.Object
java.lang.Enum<Error>
com.bosch.wdw.Error
All Implemented Interfaces:
Serializable, Comparable<Error>, Constable

public enum Error extends Enum<Error>

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.

  • Enum Constant Details

    • MissingPermission

      public static final Error MissingPermission

      The MissingPermission error 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
      If the internal push is used, the following two permissions are also required:
      • Manifest.permission.INTERNET
      • Manifest.permission.ACCESS_NETWORK_STATE

      The error may occur on starting the WDW-SDK or in runtime.

    • UnsupportedHardware

      public static final Error UnsupportedHardware

      The UnsupportedHardware error 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 LocationServiceDisabled error 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 PlayServicesNotAvailable error 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

      public static Error[] 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

      public static Error valueOf(String name)
      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 name
      NullPointerException - if the argument is null