org.soyatec.windowsazure.error
Enum StorageErrorCode

java.lang.Object
  extended by java.lang.Enum<StorageErrorCode>
      extended by org.soyatec.windowsazure.error.StorageErrorCode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StorageErrorCode>

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

Error codes that can be returned by the storage service or the client library. These are divided into server errors and client errors depending on which side the error can be attributed to.


Enum Constant Summary
AccessDenied
           
AccountNotFound
           
AuthenticationFailure
           
BadGateway
           
BadRange
           
BadRequest
           
BatchOperationError
           
BlobAlreadyExists
           
BlobNotFound
           
ConditionFailed
           
ContainerAlreadyExists
           
ContainerNotFound
           
None
           
ResourceAlreadyExists
           
ResourceNotFound
           
ServiceBadResponse
           
ServiceIntegrityCheckFailed
           
ServiceInternalError
           
ServiceTimeout
           
TransportError
           
 
Method Summary
static StorageErrorCode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StorageErrorCode[] values()
          Returns an array containing the constants of this enum type, in the order they're 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

None

public static final StorageErrorCode None

ServiceInternalError

public static final StorageErrorCode ServiceInternalError

ServiceTimeout

public static final StorageErrorCode ServiceTimeout

ServiceIntegrityCheckFailed

public static final StorageErrorCode ServiceIntegrityCheckFailed

TransportError

public static final StorageErrorCode TransportError

ServiceBadResponse

public static final StorageErrorCode ServiceBadResponse

BatchOperationError

public static final StorageErrorCode BatchOperationError

ResourceNotFound

public static final StorageErrorCode ResourceNotFound

AccountNotFound

public static final StorageErrorCode AccountNotFound

ContainerNotFound

public static final StorageErrorCode ContainerNotFound

BlobNotFound

public static final StorageErrorCode BlobNotFound

AuthenticationFailure

public static final StorageErrorCode AuthenticationFailure

AccessDenied

public static final StorageErrorCode AccessDenied

ResourceAlreadyExists

public static final StorageErrorCode ResourceAlreadyExists

ContainerAlreadyExists

public static final StorageErrorCode ContainerAlreadyExists

BlobAlreadyExists

public static final StorageErrorCode BlobAlreadyExists

BadRequest

public static final StorageErrorCode BadRequest

ConditionFailed

public static final StorageErrorCode ConditionFailed

BadGateway

public static final StorageErrorCode BadGateway

BadRange

public static final StorageErrorCode BadRange
Method Detail

values

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

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

valueOf

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