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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package codegurureviewer
     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  	// You do not have sufficient access to perform this action.
    15  	ErrCodeAccessDeniedException = "AccessDeniedException"
    16  
    17  	// ErrCodeConflictException for service response error code
    18  	// "ConflictException".
    19  	//
    20  	// The requested operation would cause a conflict with the current state of
    21  	// a service resource associated with the request. Resolve the conflict before
    22  	// retrying this request.
    23  	ErrCodeConflictException = "ConflictException"
    24  
    25  	// ErrCodeInternalServerException for service response error code
    26  	// "InternalServerException".
    27  	//
    28  	// The server encountered an internal error and is unable to complete the request.
    29  	ErrCodeInternalServerException = "InternalServerException"
    30  
    31  	// ErrCodeNotFoundException for service response error code
    32  	// "NotFoundException".
    33  	//
    34  	// The resource specified in the request was not found.
    35  	ErrCodeNotFoundException = "NotFoundException"
    36  
    37  	// ErrCodeResourceNotFoundException for service response error code
    38  	// "ResourceNotFoundException".
    39  	//
    40  	// The resource specified in the request was not found.
    41  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    42  
    43  	// ErrCodeThrottlingException for service response error code
    44  	// "ThrottlingException".
    45  	//
    46  	// The request was denied due to request throttling.
    47  	ErrCodeThrottlingException = "ThrottlingException"
    48  
    49  	// ErrCodeValidationException for service response error code
    50  	// "ValidationException".
    51  	//
    52  	// The input fails to satisfy the specified constraints.
    53  	ErrCodeValidationException = "ValidationException"
    54  )
    55  
    56  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    57  	"AccessDeniedException":     newErrorAccessDeniedException,
    58  	"ConflictException":         newErrorConflictException,
    59  	"InternalServerException":   newErrorInternalServerException,
    60  	"NotFoundException":         newErrorNotFoundException,
    61  	"ResourceNotFoundException": newErrorResourceNotFoundException,
    62  	"ThrottlingException":       newErrorThrottlingException,
    63  	"ValidationException":       newErrorValidationException,
    64  }