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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package route53recoverycontrolconfig
     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  	// 403 response - AccessDeniedException. You do not have sufficient access to
    15  	// perform this action.
    16  	ErrCodeAccessDeniedException = "AccessDeniedException"
    17  
    18  	// ErrCodeConflictException for service response error code
    19  	// "ConflictException".
    20  	//
    21  	// 409 response - ConflictException.
    22  	ErrCodeConflictException = "ConflictException"
    23  
    24  	// ErrCodeInternalServerException for service response error code
    25  	// "InternalServerException".
    26  	//
    27  	// 500 response - InternalServiceError. Temporary service error. Retry the request.
    28  	ErrCodeInternalServerException = "InternalServerException"
    29  
    30  	// ErrCodeResourceNotFoundException for service response error code
    31  	// "ResourceNotFoundException".
    32  	//
    33  	// 404 response - The query string contains a syntax error or resource not found.
    34  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    35  
    36  	// ErrCodeServiceQuotaExceededException for service response error code
    37  	// "ServiceQuotaExceededException".
    38  	//
    39  	// 402 response
    40  	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
    41  
    42  	// ErrCodeThrottlingException for service response error code
    43  	// "ThrottlingException".
    44  	//
    45  	// 429 response - ThrottlingException.
    46  	ErrCodeThrottlingException = "ThrottlingException"
    47  
    48  	// ErrCodeValidationException for service response error code
    49  	// "ValidationException".
    50  	//
    51  	// 400 response - Multiple causes. For example, you might have a malformed query
    52  	// string and input parameter might be out of range, or you used parameters
    53  	// together incorrectly.
    54  	ErrCodeValidationException = "ValidationException"
    55  )
    56  
    57  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    58  	"AccessDeniedException":         newErrorAccessDeniedException,
    59  	"ConflictException":             newErrorConflictException,
    60  	"InternalServerException":       newErrorInternalServerException,
    61  	"ResourceNotFoundException":     newErrorResourceNotFoundException,
    62  	"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
    63  	"ThrottlingException":           newErrorThrottlingException,
    64  	"ValidationException":           newErrorValidationException,
    65  }