public final enum

TmdError

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ fi.moprim.tmd.sdk.model.TmdError

Class Overview

Enum of the possible error

Summary

Enum Values
TmdError  COULD_NOT_CONNECT_TO_THE_INTERNET  Triggered when the network operation was not successful  
TmdError  JSON_PARSING_ERROR  Triggered when JSON object was not parsable  
TmdError  TMD_CLOUD_COULD_NOT_READ_STREAM  Triggered when the I/O operation could not be achieved  
TmdError  TMD_CLOUD_FETCH_TOO_LONG  Triggered when start/stop parameters include a two big gap. 
TmdError  TMD_CLOUD_STATUS_CODE_NOT_OK  Triggered when the Cloud is not responsive or has internal error  
TmdError  TMD_INVALID_PARAMETER   
TmdError  TMD_NETWORK_OPERATION_ON_MAIN_THREAD  Triggered when one starts a long lasting operation on the main thread  
TmdError  TMD_NOT_INITIALIZED  Triggered if one starts the TMD service without a successful initialisation  
TmdError  TMD_SDK_ENDPOINT_INVALID  The SDK endpoint is invalid, in this condition the SDK cannot operate  
TmdError  TMD_SDK_KEY_INVALID  Triggered the SDK key is invalid  
TmdError  UNKNOWN_ERROR  Triggered when an unknown error occurred  
Public Methods
static TmdError valueOf(String name)
final static TmdError[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final TmdError COULD_NOT_CONNECT_TO_THE_INTERNET

Triggered when the network operation was not successful

public static final TmdError JSON_PARSING_ERROR

Triggered when JSON object was not parsable

public static final TmdError TMD_CLOUD_COULD_NOT_READ_STREAM

Triggered when the I/O operation could not be achieved

public static final TmdError TMD_CLOUD_FETCH_TOO_LONG

Triggered when start/stop parameters include a two big gap. Current max 2 days

public static final TmdError TMD_CLOUD_STATUS_CODE_NOT_OK

Triggered when the Cloud is not responsive or has internal error

public static final TmdError TMD_INVALID_PARAMETER

public static final TmdError TMD_NETWORK_OPERATION_ON_MAIN_THREAD

Triggered when one starts a long lasting operation on the main thread

public static final TmdError TMD_NOT_INITIALIZED

Triggered if one starts the TMD service without a successful initialisation

public static final TmdError TMD_SDK_ENDPOINT_INVALID

The SDK endpoint is invalid, in this condition the SDK cannot operate

public static final TmdError TMD_SDK_KEY_INVALID

Triggered the SDK key is invalid

public static final TmdError UNKNOWN_ERROR

Triggered when an unknown error occurred

Public Methods

public static TmdError valueOf (String name)

public static final TmdError[] values ()