Enum TmdError

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

    public enum TmdError
    extends java.lang.Enum<TmdError>
    Enum of the possible error
    • Enum Constant Detail

      • COULD_NOT_CONNECT_TO_THE_INTERNET

        public static final TmdError COULD_NOT_CONNECT_TO_THE_INTERNET
        Triggered when the network operation was not successful
      • TMD_SDK_KEY_INVALID

        public static final TmdError TMD_SDK_KEY_INVALID
        Triggered the SDK key is invalid
      • TMD_SDK_ENDPOINT_INVALID

        public static final TmdError TMD_SDK_ENDPOINT_INVALID
        The SDK endpoint is invalid, in this condition the SDK cannot operate
      • TMD_INVALID_CONFIGURATION

        public static final TmdError TMD_INVALID_CONFIGURATION
        The SDK is not configure properly
      • TMD_SDK_DEPRECATED_API

        public static final TmdError TMD_SDK_DEPRECATED_API
        The SDK API is deprecated
      • UNKNOWN_ERROR

        public static final TmdError UNKNOWN_ERROR
        Triggered when an unknown error occurred
      • TMD_NOT_INITIALIZED

        public static final TmdError TMD_NOT_INITIALIZED
        Triggered if one starts the TMD service without a successful initialisation
      • TMD_INITIALIZATION_FAILED

        public static final TmdError TMD_INITIALIZATION_FAILED
        Triggered if the initialization failed
      • TMD_NETWORK_OPERATION_ON_MAIN_THREAD

        public static final TmdError TMD_NETWORK_OPERATION_ON_MAIN_THREAD
        Triggered when one starts a long lasting network operation on the main thread
      • TMD_DATABASE_OPERATION_ON_MAIN_THREAD

        public static final TmdError TMD_DATABASE_OPERATION_ON_MAIN_THREAD
        Since:
        0.6.3 Triggered when one starts a long lasting database operation on the main thread
      • TMD_CLOUD_FETCH_TOO_LONG

        public static final TmdError TMD_CLOUD_FETCH_TOO_LONG
        Triggered when start/stop parameters include a two big gap. Current max 2 days
      • JSON_PARSING_ERROR

        public static final TmdError JSON_PARSING_ERROR
        Triggered when JSON object was not parsable
      • TMD_CLOUD_STATUS_CODE_NOT_OK

        public static final TmdError TMD_CLOUD_STATUS_CODE_NOT_OK
        Triggered when the Cloud is not responsive or has internal error
      • TMD_CLOUD_COULD_NOT_READ_STREAM

        public static final TmdError TMD_CLOUD_COULD_NOT_READ_STREAM
        Triggered when the I/O operation could not be achieved
      • TMD_CLOUD_UNAUTHORIZED_OPERATION

        public static final TmdError TMD_CLOUD_UNAUTHORIZED_OPERATION
        Since:
        0.6.3 Triggered when an unauthorized exception has been caught while using the cloud
      • TMD_INVALID_PARAMETER

        public static final TmdError TMD_INVALID_PARAMETER
        Since:
        0.3.4 Triggered when a given parameter is invalid
      • TMD_PAYLOAD_TOO_LARGE

        public static final TmdError TMD_PAYLOAD_TOO_LARGE
        Triggered when too much data to be sent at once
    • Method Detail

      • values

        public static TmdError[] 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 (TmdError c : TmdError.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TmdError 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