com.biocomfort.SDK.event
Enum ErrorType

java.lang.Object
  extended by java.lang.Enum<ErrorType>
      extended by com.biocomfort.SDK.event.ErrorType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ErrorType>

public enum ErrorType
extends java.lang.Enum<ErrorType>

The enummeration ErrorType contains the types of runtime errors that can occur while using the SDK.

See Also:
ErrorEvent

Enum Constant Summary
device_error
          A general device error.
device_error__binding_timeout
          A device error, occurs when a binding timeout occurs.
device_error__invalid_device_status
          A device error, occurs when the device status was not the expected one for the last device operation.
device_error__received_data_is_null
          A device error, occurs when a device has sent a null data packet.
device_error__request_needs_resend
          A device error, occurs when a packet was lost and the request needs to be resent.
device_error__request_timeout
          A device error, occurs when several packet of the same request are lost.
device_error__slow_down_timeout
          A device error, occurs when a slow down timeout occurs.
device_error__speed_up_timeout
          A device error, occurs when a speed up timeout occurs.
device_error__unbinding_timeout
          A device error, occurs when an unbinding timeout occurs.
error_unknown
          The most general error type.
exit_error
          A general error occurs when exiting the SDK.
general_error
          A general ASK error occurs.
general_error__connection_error
          A general connection error.
general_error__gateway_was_removed
          A general error, occurs when the dongle (gateway) was removed.
start_error
          A general error occurs when starting the SDK.
start_error__resource_not_found
          A resource was missing when starting the SDK.
 
Method Summary
 int getValue()
          Returns the int value of this error type.
static ErrorType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ErrorType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

error_unknown

public static final ErrorType error_unknown
The most general error type.


start_error

public static final ErrorType start_error
A general error occurs when starting the SDK.


start_error__resource_not_found

public static final ErrorType start_error__resource_not_found
A resource was missing when starting the SDK.


exit_error

public static final ErrorType exit_error
A general error occurs when exiting the SDK.


general_error

public static final ErrorType general_error
A general ASK error occurs.


general_error__connection_error

public static final ErrorType general_error__connection_error
A general connection error.


general_error__gateway_was_removed

public static final ErrorType general_error__gateway_was_removed
A general error, occurs when the dongle (gateway) was removed.


device_error

public static final ErrorType device_error
A general device error.


device_error__request_needs_resend

public static final ErrorType device_error__request_needs_resend
A device error, occurs when a packet was lost and the request needs to be resent.


device_error__request_timeout

public static final ErrorType device_error__request_timeout
A device error, occurs when several packet of the same request are lost.


device_error__binding_timeout

public static final ErrorType device_error__binding_timeout
A device error, occurs when a binding timeout occurs.


device_error__unbinding_timeout

public static final ErrorType device_error__unbinding_timeout
A device error, occurs when an unbinding timeout occurs.


device_error__speed_up_timeout

public static final ErrorType device_error__speed_up_timeout
A device error, occurs when a speed up timeout occurs.


device_error__slow_down_timeout

public static final ErrorType device_error__slow_down_timeout
A device error, occurs when a slow down timeout occurs.


device_error__invalid_device_status

public static final ErrorType device_error__invalid_device_status
A device error, occurs when the device status was not the expected one for the last device operation.


device_error__received_data_is_null

public static final ErrorType device_error__received_data_is_null
A device error, occurs when a device has sent a null data packet.

Method Detail

values

public static final ErrorType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ErrorType c : ErrorType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

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

getValue

public int getValue()
Returns the int value of this error type.

Returns:
the the error type's int value