|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ErrorType>
com.biocomfort.SDK.event.ErrorType
public enum ErrorType
The enummeration ErrorType
contains the types of runtime errors
that can occur while using the SDK.
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 |
---|
public static final ErrorType error_unknown
public static final ErrorType start_error
public static final ErrorType start_error__resource_not_found
public static final ErrorType exit_error
public static final ErrorType general_error
public static final ErrorType general_error__connection_error
public static final ErrorType general_error__gateway_was_removed
public static final ErrorType device_error
public static final ErrorType device_error__request_needs_resend
public static final ErrorType device_error__request_timeout
public static final ErrorType device_error__binding_timeout
public static final ErrorType device_error__unbinding_timeout
public static final ErrorType device_error__speed_up_timeout
public static final ErrorType device_error__slow_down_timeout
public static final ErrorType device_error__invalid_device_status
public static final ErrorType device_error__received_data_is_null
Method Detail |
---|
public static final ErrorType[] values()
for(ErrorType c : ErrorType.values()) System.out.println(c);
public static ErrorType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic int getValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |