com.atlassian.aws.ec2.awssdk
Enum AwsSupportConstants.ServiceErrorCode

java.lang.Object
  extended by java.lang.Enum<AwsSupportConstants.ServiceErrorCode>
      extended by com.atlassian.aws.ec2.awssdk.AwsSupportConstants.ServiceErrorCode
All Implemented Interfaces:
Serializable, Comparable<AwsSupportConstants.ServiceErrorCode>
Enclosing class:
AwsSupportConstants

public static enum AwsSupportConstants.ServiceErrorCode
extends Enum<AwsSupportConstants.ServiceErrorCode>


Enum Constant Summary
ADDRESS_LIMIT_EXCEEDED
           
INSUFFICIENT_INSTANCE_CAPACITY
           
INVALID_ALLOCATION_ID_NOT_FOUND
           
INVALID_INSTANCE_ID_NOT_FOUND
           
INVALID_SPOT_INSTANCE_REQUEST_ID_NOT_FOUND
           
INVALID_SUBNET_ID_NOT_FOUND
           
INVALID_VOLUME_NOT_FOUND
           
INVALID_VPC_ID_NOT_FOUND
           
MAX_SPOT_INSTANCE_COUNT_EXCEEDED
           
RESOURCE_ALREADY_ASSOCIATED
           
UNAUTHORISED_OPERATION
           
 
Method Summary
 boolean is(com.amazonaws.AmazonServiceException e)
           
 void rethrowIfNot(com.amazonaws.AmazonServiceException sparta)
           
static void rethrowIfNot(com.amazonaws.AmazonServiceException e, AwsSupportConstants.ServiceErrorCode... errorCodes)
           
 String toString()
           
static AwsSupportConstants.ServiceErrorCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AwsSupportConstants.ServiceErrorCode[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MAX_SPOT_INSTANCE_COUNT_EXCEEDED

public static final AwsSupportConstants.ServiceErrorCode MAX_SPOT_INSTANCE_COUNT_EXCEEDED

INVALID_SPOT_INSTANCE_REQUEST_ID_NOT_FOUND

public static final AwsSupportConstants.ServiceErrorCode INVALID_SPOT_INSTANCE_REQUEST_ID_NOT_FOUND

INVALID_INSTANCE_ID_NOT_FOUND

public static final AwsSupportConstants.ServiceErrorCode INVALID_INSTANCE_ID_NOT_FOUND

INVALID_VOLUME_NOT_FOUND

public static final AwsSupportConstants.ServiceErrorCode INVALID_VOLUME_NOT_FOUND

INVALID_SUBNET_ID_NOT_FOUND

public static final AwsSupportConstants.ServiceErrorCode INVALID_SUBNET_ID_NOT_FOUND

INVALID_ALLOCATION_ID_NOT_FOUND

public static final AwsSupportConstants.ServiceErrorCode INVALID_ALLOCATION_ID_NOT_FOUND

INVALID_VPC_ID_NOT_FOUND

public static final AwsSupportConstants.ServiceErrorCode INVALID_VPC_ID_NOT_FOUND

RESOURCE_ALREADY_ASSOCIATED

public static final AwsSupportConstants.ServiceErrorCode RESOURCE_ALREADY_ASSOCIATED

UNAUTHORISED_OPERATION

public static final AwsSupportConstants.ServiceErrorCode UNAUTHORISED_OPERATION

ADDRESS_LIMIT_EXCEEDED

public static final AwsSupportConstants.ServiceErrorCode ADDRESS_LIMIT_EXCEEDED

INSUFFICIENT_INSTANCE_CAPACITY

public static final AwsSupportConstants.ServiceErrorCode INSUFFICIENT_INSTANCE_CAPACITY
Method Detail

values

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

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

valueOf

public static AwsSupportConstants.ServiceErrorCode 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

toString

public String toString()
Overrides:
toString in class Enum<AwsSupportConstants.ServiceErrorCode>

is

public boolean is(@NotNull
                  com.amazonaws.AmazonServiceException e)

rethrowIfNot

public void rethrowIfNot(com.amazonaws.AmazonServiceException sparta)

rethrowIfNot

public static void rethrowIfNot(com.amazonaws.AmazonServiceException e,
                                AwsSupportConstants.ServiceErrorCode... errorCodes)


Copyright © 2015 Atlassian. All rights reserved.