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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package pinpointemail
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeAccountSuspendedException for service response error code
    12  	// "AccountSuspendedException".
    13  	//
    14  	// The message can't be sent because the account's ability to send email has
    15  	// been permanently restricted.
    16  	ErrCodeAccountSuspendedException = "AccountSuspendedException"
    17  
    18  	// ErrCodeAlreadyExistsException for service response error code
    19  	// "AlreadyExistsException".
    20  	//
    21  	// The resource specified in your request already exists.
    22  	ErrCodeAlreadyExistsException = "AlreadyExistsException"
    23  
    24  	// ErrCodeBadRequestException for service response error code
    25  	// "BadRequestException".
    26  	//
    27  	// The input you provided is invalid.
    28  	ErrCodeBadRequestException = "BadRequestException"
    29  
    30  	// ErrCodeConcurrentModificationException for service response error code
    31  	// "ConcurrentModificationException".
    32  	//
    33  	// The resource is being modified by another operation or thread.
    34  	ErrCodeConcurrentModificationException = "ConcurrentModificationException"
    35  
    36  	// ErrCodeLimitExceededException for service response error code
    37  	// "LimitExceededException".
    38  	//
    39  	// There are too many instances of the specified resource type.
    40  	ErrCodeLimitExceededException = "LimitExceededException"
    41  
    42  	// ErrCodeMailFromDomainNotVerifiedException for service response error code
    43  	// "MailFromDomainNotVerifiedException".
    44  	//
    45  	// The message can't be sent because the sending domain isn't verified.
    46  	ErrCodeMailFromDomainNotVerifiedException = "MailFromDomainNotVerifiedException"
    47  
    48  	// ErrCodeMessageRejected for service response error code
    49  	// "MessageRejected".
    50  	//
    51  	// The message can't be sent because it contains invalid content.
    52  	ErrCodeMessageRejected = "MessageRejected"
    53  
    54  	// ErrCodeNotFoundException for service response error code
    55  	// "NotFoundException".
    56  	//
    57  	// The resource you attempted to access doesn't exist.
    58  	ErrCodeNotFoundException = "NotFoundException"
    59  
    60  	// ErrCodeSendingPausedException for service response error code
    61  	// "SendingPausedException".
    62  	//
    63  	// The message can't be sent because the account's ability to send email is
    64  	// currently paused.
    65  	ErrCodeSendingPausedException = "SendingPausedException"
    66  
    67  	// ErrCodeTooManyRequestsException for service response error code
    68  	// "TooManyRequestsException".
    69  	//
    70  	// Too many requests have been made to the operation.
    71  	ErrCodeTooManyRequestsException = "TooManyRequestsException"
    72  )
    73  
    74  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    75  	"AccountSuspendedException":          newErrorAccountSuspendedException,
    76  	"AlreadyExistsException":             newErrorAlreadyExistsException,
    77  	"BadRequestException":                newErrorBadRequestException,
    78  	"ConcurrentModificationException":    newErrorConcurrentModificationException,
    79  	"LimitExceededException":             newErrorLimitExceededException,
    80  	"MailFromDomainNotVerifiedException": newErrorMailFromDomainNotVerifiedException,
    81  	"MessageRejected":                    newErrorMessageRejected,
    82  	"NotFoundException":                  newErrorNotFoundException,
    83  	"SendingPausedException":             newErrorSendingPausedException,
    84  	"TooManyRequestsException":           newErrorTooManyRequestsException,
    85  }