com.kii.cloud.filesync
Enum SyncError

java.lang.Object
  extended by java.lang.Enum<SyncError>
      extended by com.kii.cloud.filesync.SyncError
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SyncError>

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

Abstracted reason of sync failure.


Enum Constant Summary
NETWORK
          Network error.
OTHERS
          Unknown cause, please contact with Kii Corp.
SERVICE
          Service unavailable.
STORAGE
          Something wrong on storage of local device.
 
Method Summary
static SyncError valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SyncError[] 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

NETWORK

public static final SyncError NETWORK
Network error.


OTHERS

public static final SyncError OTHERS
Unknown cause, please contact with Kii Corp.


SERVICE

public static final SyncError SERVICE
Service unavailable.


STORAGE

public static final SyncError STORAGE
Something wrong on storage of local device.

Method Detail

valueOf

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

values

public static SyncError[] 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 (SyncError c : SyncError.values())
    System.out.println(c);

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