com.kii.sdk.photocolle
Enum BaseApplicationLayerException.ErrorCode

java.lang.Object
  extended by java.lang.Enum<BaseApplicationLayerException.ErrorCode>
      extended by com.kii.sdk.photocolle.BaseApplicationLayerException.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<BaseApplicationLayerException.ErrorCode>
Enclosing class:
BaseApplicationLayerException

public static enum BaseApplicationLayerException.ErrorCode
extends Enum<BaseApplicationLayerException.ErrorCode>

Error code returned from server.


Enum Constant Summary
CAPACITY_OVER
          Capacity of a user is over.
CONTENTS_DUPLICATED
          Contents are duplicated.
CONTENTS_NOT_FOUND
          Contents not found.
FAIL_TO_GET_FREE_SPACE
          Fail to get free space of a user.
FAIL_TO_GET_MAXIMUM_SPACE
          Fail to get maximum space of a user.
MANDATORY_PARAMETER_MISSED
          Mandatory parameter is missed.
NO_RESULTS
          Search result is empty.
PARAMETER_ERROR
          Something wrong with a parameter or parameters which a client sent.
PARAMETER_SIZE_UNMATCHED
          Parameters sent by a client size is unmatched.
PARAMETER_TYPE_UNMATCHED
          Type of parameters are unmateched.
PARAMETER_VALUE_INVALID
          Value of parameters are invalid.
SERVER_ERROR
          Server process failed because of server internal error.
TARGET_NOT_FOUND
          There is no targets to retrieve.
TIMEOUT
          Server process timeout.
 
Method Summary
 int getCode()
          Error code defined by PhotoColle service.
 boolean isRetryable()
          Retryable flag.
static BaseApplicationLayerException.ErrorCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BaseApplicationLayerException.ErrorCode[] 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

PARAMETER_ERROR

public static final BaseApplicationLayerException.ErrorCode PARAMETER_ERROR
Something wrong with a parameter or parameters which a client sent.

You need to fix parameters to retry the operation. This error code is notified by following methods:


TARGET_NOT_FOUND

public static final BaseApplicationLayerException.ErrorCode TARGET_NOT_FOUND
There is no targets to retrieve.

You can not retry the operation. This error code is notified by following methods:


TIMEOUT

public static final BaseApplicationLayerException.ErrorCode TIMEOUT
Server process timeout. retry later.

This error code is notified by following methods:


NO_RESULTS

public static final BaseApplicationLayerException.ErrorCode NO_RESULTS
Search result is empty.

There is no result matched to query which client sent. This error code is notified by following methods:


SERVER_ERROR

public static final BaseApplicationLayerException.ErrorCode SERVER_ERROR
Server process failed because of server internal error.

You can not retry the operation. Please contact service provider. This error code is notified by following methods:


CONTENTS_DUPLICATED

public static final BaseApplicationLayerException.ErrorCode CONTENTS_DUPLICATED
Contents are duplicated.

An uploading content is duplicated to other content in server. If you want to upload the content in client, you need to remove a duplicated content in server by other application. This error code is notified by a following method:


CAPACITY_OVER

public static final BaseApplicationLayerException.ErrorCode CAPACITY_OVER
Capacity of a user is over.

Server reject an uploaded content because of capacity over. You need to remove conentes in server to upload new contents by other application. This error code is notified by a following method:


FAIL_TO_GET_FREE_SPACE

public static final BaseApplicationLayerException.ErrorCode FAIL_TO_GET_FREE_SPACE
Fail to get free space of a user.

This error code is notified by a following method:


FAIL_TO_GET_MAXIMUM_SPACE

public static final BaseApplicationLayerException.ErrorCode FAIL_TO_GET_MAXIMUM_SPACE
Fail to get maximum space of a user.

This error code is notified by a following method:


CONTENTS_NOT_FOUND

public static final BaseApplicationLayerException.ErrorCode CONTENTS_NOT_FOUND
Contents not found.


MANDATORY_PARAMETER_MISSED

public static final BaseApplicationLayerException.ErrorCode MANDATORY_PARAMETER_MISSED
Mandatory parameter is missed.

If you want to retry, check parameter. This error code is notified by a following method:


PARAMETER_SIZE_UNMATCHED

public static final BaseApplicationLayerException.ErrorCode PARAMETER_SIZE_UNMATCHED
Parameters sent by a client size is unmatched.

If you want to retry, check parameter. This error code is notified by a following method:


PARAMETER_TYPE_UNMATCHED

public static final BaseApplicationLayerException.ErrorCode PARAMETER_TYPE_UNMATCHED
Type of parameters are unmateched.

If you want to retry, check parameter. This error code is notified by a following method:


PARAMETER_VALUE_INVALID

public static final BaseApplicationLayerException.ErrorCode PARAMETER_VALUE_INVALID
Value of parameters are invalid.

If you want to retry, check parameter. This error code is notified by a following method:

Method Detail

values

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

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

valueOf

public static BaseApplicationLayerException.ErrorCode valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getCode

public int getCode()
Error code defined by PhotoColle service.

Returns:
the code

isRetryable

public boolean isRetryable()
Retryable flag. if true you can retry with same parameters.

Returns:
the retryable