Package com.bosch.wdw

Enum Error

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Error>

    public enum Error
    extends java.lang.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.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Error valueOf​(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.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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 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 name
        java.lang.NullPointerException - if the argument is null