org.jclouds.cloudstack.domain
Enum AsyncJobError.ErrorCode

java.lang.Object
  extended by java.lang.Enum<AsyncJobError.ErrorCode>
      extended by org.jclouds.cloudstack.domain.AsyncJobError.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<AsyncJobError.ErrorCode>
Enclosing class:
AsyncJobError

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

Error codes for job errors


Enum Constant Summary
ACCOUNT_ERROR
           
ACCOUNT_RESOURCE_LIMIT_ERROR
           
INSUFFICIENT_CAPACITY_ERROR
           
INTERNAL_ERROR
           
NETWORK_RULE_CONFLICT_ERROR
           
RESOURCE_ALLOCATION_ERROR
           
RESOURCE_IN_USE_ERROR
           
RESOURCE_UNAVAILABLE_ERROR
           
UNKNOWN
           
 
Method Summary
 int code()
           
static AsyncJobError.ErrorCode fromValue(String value)
           
static AsyncJobError.ErrorCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AsyncJobError.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
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INTERNAL_ERROR

public static final AsyncJobError.ErrorCode INTERNAL_ERROR

ACCOUNT_ERROR

public static final AsyncJobError.ErrorCode ACCOUNT_ERROR

ACCOUNT_RESOURCE_LIMIT_ERROR

public static final AsyncJobError.ErrorCode ACCOUNT_RESOURCE_LIMIT_ERROR

INSUFFICIENT_CAPACITY_ERROR

public static final AsyncJobError.ErrorCode INSUFFICIENT_CAPACITY_ERROR

RESOURCE_UNAVAILABLE_ERROR

public static final AsyncJobError.ErrorCode RESOURCE_UNAVAILABLE_ERROR

RESOURCE_ALLOCATION_ERROR

public static final AsyncJobError.ErrorCode RESOURCE_ALLOCATION_ERROR

RESOURCE_IN_USE_ERROR

public static final AsyncJobError.ErrorCode RESOURCE_IN_USE_ERROR

NETWORK_RULE_CONFLICT_ERROR

public static final AsyncJobError.ErrorCode NETWORK_RULE_CONFLICT_ERROR

UNKNOWN

public static final AsyncJobError.ErrorCode UNKNOWN
Method Detail

values

public static AsyncJobError.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 (AsyncJobError.ErrorCode c : AsyncJobError.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 AsyncJobError.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

code

public int code()

fromValue

public static AsyncJobError.ErrorCode fromValue(String value)


Copyright © 2009-2012 jclouds. All Rights Reserved.