github.com/aavshr/aws-sdk-go@v1.41.3/service/elasticsearchservice/errors.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package elasticsearchservice
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeAccessDeniedException for service response error code
    12  	// "AccessDeniedException".
    13  	//
    14  	// An error occurred because user does not have permissions to access the resource.
    15  	// Returns HTTP status code 403.
    16  	ErrCodeAccessDeniedException = "AccessDeniedException"
    17  
    18  	// ErrCodeBaseException for service response error code
    19  	// "BaseException".
    20  	//
    21  	// An error occurred while processing the request.
    22  	ErrCodeBaseException = "BaseException"
    23  
    24  	// ErrCodeConflictException for service response error code
    25  	// "ConflictException".
    26  	//
    27  	// An error occurred because the client attempts to remove a resource that is
    28  	// currently in use. Returns HTTP status code 409.
    29  	ErrCodeConflictException = "ConflictException"
    30  
    31  	// ErrCodeDisabledOperationException for service response error code
    32  	// "DisabledOperationException".
    33  	//
    34  	// An error occured because the client wanted to access a not supported operation.
    35  	// Gives http status code of 409.
    36  	ErrCodeDisabledOperationException = "DisabledOperationException"
    37  
    38  	// ErrCodeInternalException for service response error code
    39  	// "InternalException".
    40  	//
    41  	// The request processing has failed because of an unknown error, exception
    42  	// or failure (the failure is internal to the service) . Gives http status code
    43  	// of 500.
    44  	ErrCodeInternalException = "InternalException"
    45  
    46  	// ErrCodeInvalidPaginationTokenException for service response error code
    47  	// "InvalidPaginationTokenException".
    48  	//
    49  	// The request processing has failed because of invalid pagination token provided
    50  	// by customer. Returns an HTTP status code of 400.
    51  	ErrCodeInvalidPaginationTokenException = "InvalidPaginationTokenException"
    52  
    53  	// ErrCodeInvalidTypeException for service response error code
    54  	// "InvalidTypeException".
    55  	//
    56  	// An exception for trying to create or access sub-resource that is either invalid
    57  	// or not supported. Gives http status code of 409.
    58  	ErrCodeInvalidTypeException = "InvalidTypeException"
    59  
    60  	// ErrCodeLimitExceededException for service response error code
    61  	// "LimitExceededException".
    62  	//
    63  	// An exception for trying to create more than allowed resources or sub-resources.
    64  	// Gives http status code of 409.
    65  	ErrCodeLimitExceededException = "LimitExceededException"
    66  
    67  	// ErrCodeResourceAlreadyExistsException for service response error code
    68  	// "ResourceAlreadyExistsException".
    69  	//
    70  	// An exception for creating a resource that already exists. Gives http status
    71  	// code of 400.
    72  	ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException"
    73  
    74  	// ErrCodeResourceNotFoundException for service response error code
    75  	// "ResourceNotFoundException".
    76  	//
    77  	// An exception for accessing or deleting a resource that does not exist. Gives
    78  	// http status code of 400.
    79  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    80  
    81  	// ErrCodeValidationException for service response error code
    82  	// "ValidationException".
    83  	//
    84  	// An exception for missing / invalid input fields. Gives http status code of
    85  	// 400.
    86  	ErrCodeValidationException = "ValidationException"
    87  )
    88  
    89  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    90  	"AccessDeniedException":           newErrorAccessDeniedException,
    91  	"BaseException":                   newErrorBaseException,
    92  	"ConflictException":               newErrorConflictException,
    93  	"DisabledOperationException":      newErrorDisabledOperationException,
    94  	"InternalException":               newErrorInternalException,
    95  	"InvalidPaginationTokenException": newErrorInvalidPaginationTokenException,
    96  	"InvalidTypeException":            newErrorInvalidTypeException,
    97  	"LimitExceededException":          newErrorLimitExceededException,
    98  	"ResourceAlreadyExistsException":  newErrorResourceAlreadyExistsException,
    99  	"ResourceNotFoundException":       newErrorResourceNotFoundException,
   100  	"ValidationException":             newErrorValidationException,
   101  }