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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package mobile
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeAccountActionRequiredException for service response error code
    12  	// "AccountActionRequiredException".
    13  	//
    14  	// Account Action is required in order to continue the request.
    15  	ErrCodeAccountActionRequiredException = "AccountActionRequiredException"
    16  
    17  	// ErrCodeBadRequestException for service response error code
    18  	// "BadRequestException".
    19  	//
    20  	// The request cannot be processed because some parameter is not valid or the
    21  	// project state prevents the operation from being performed.
    22  	ErrCodeBadRequestException = "BadRequestException"
    23  
    24  	// ErrCodeInternalFailureException for service response error code
    25  	// "InternalFailureException".
    26  	//
    27  	// The service has encountered an unexpected error condition which prevents
    28  	// it from servicing the request.
    29  	ErrCodeInternalFailureException = "InternalFailureException"
    30  
    31  	// ErrCodeLimitExceededException for service response error code
    32  	// "LimitExceededException".
    33  	//
    34  	// There are too many AWS Mobile Hub projects in the account or the account
    35  	// has exceeded the maximum number of resources in some AWS service. You should
    36  	// create another sub-account using AWS Organizations or remove some resources
    37  	// and retry your request.
    38  	ErrCodeLimitExceededException = "LimitExceededException"
    39  
    40  	// ErrCodeNotFoundException for service response error code
    41  	// "NotFoundException".
    42  	//
    43  	// No entity can be found with the specified identifier.
    44  	ErrCodeNotFoundException = "NotFoundException"
    45  
    46  	// ErrCodeServiceUnavailableException for service response error code
    47  	// "ServiceUnavailableException".
    48  	//
    49  	// The service is temporarily unavailable. The request should be retried after
    50  	// some time delay.
    51  	ErrCodeServiceUnavailableException = "ServiceUnavailableException"
    52  
    53  	// ErrCodeTooManyRequestsException for service response error code
    54  	// "TooManyRequestsException".
    55  	//
    56  	// Too many requests have been received for this AWS account in too short a
    57  	// time. The request should be retried after some time delay.
    58  	ErrCodeTooManyRequestsException = "TooManyRequestsException"
    59  
    60  	// ErrCodeUnauthorizedException for service response error code
    61  	// "UnauthorizedException".
    62  	//
    63  	// Credentials of the caller are insufficient to authorize the request.
    64  	ErrCodeUnauthorizedException = "UnauthorizedException"
    65  )
    66  
    67  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    68  	"AccountActionRequiredException": newErrorAccountActionRequiredException,
    69  	"BadRequestException":            newErrorBadRequestException,
    70  	"InternalFailureException":       newErrorInternalFailureException,
    71  	"LimitExceededException":         newErrorLimitExceededException,
    72  	"NotFoundException":              newErrorNotFoundException,
    73  	"ServiceUnavailableException":    newErrorServiceUnavailableException,
    74  	"TooManyRequestsException":       newErrorTooManyRequestsException,
    75  	"UnauthorizedException":          newErrorUnauthorizedException,
    76  }