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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package appregistry
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeConflictException for service response error code
    12  	// "ConflictException".
    13  	//
    14  	// There was a conflict when processing the request (for example, a resource
    15  	// with the given name already exists within the account).
    16  	ErrCodeConflictException = "ConflictException"
    17  
    18  	// ErrCodeInternalServerException for service response error code
    19  	// "InternalServerException".
    20  	//
    21  	// The service is experiencing internal problems.
    22  	ErrCodeInternalServerException = "InternalServerException"
    23  
    24  	// ErrCodeResourceNotFoundException for service response error code
    25  	// "ResourceNotFoundException".
    26  	//
    27  	// The specified resource does not exist.
    28  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    29  
    30  	// ErrCodeServiceQuotaExceededException for service response error code
    31  	// "ServiceQuotaExceededException".
    32  	//
    33  	// The maximum number of resources per account has been reached.
    34  	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
    35  
    36  	// ErrCodeValidationException for service response error code
    37  	// "ValidationException".
    38  	//
    39  	// The request has invalid or missing parameters.
    40  	ErrCodeValidationException = "ValidationException"
    41  )
    42  
    43  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    44  	"ConflictException":             newErrorConflictException,
    45  	"InternalServerException":       newErrorInternalServerException,
    46  	"ResourceNotFoundException":     newErrorResourceNotFoundException,
    47  	"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
    48  	"ValidationException":           newErrorValidationException,
    49  }