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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package codestarconnections
     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  	// Two conflicting operations have been made on the same resource.
    15  	ErrCodeConflictException = "ConflictException"
    16  
    17  	// ErrCodeLimitExceededException for service response error code
    18  	// "LimitExceededException".
    19  	//
    20  	// Exceeded the maximum limit for connections.
    21  	ErrCodeLimitExceededException = "LimitExceededException"
    22  
    23  	// ErrCodeResourceNotFoundException for service response error code
    24  	// "ResourceNotFoundException".
    25  	//
    26  	// Resource not found. Verify the connection resource ARN and try again.
    27  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    28  
    29  	// ErrCodeResourceUnavailableException for service response error code
    30  	// "ResourceUnavailableException".
    31  	//
    32  	// Resource not found. Verify the ARN for the host resource and try again.
    33  	ErrCodeResourceUnavailableException = "ResourceUnavailableException"
    34  
    35  	// ErrCodeUnsupportedOperationException for service response error code
    36  	// "UnsupportedOperationException".
    37  	//
    38  	// The operation is not supported. Check the connection status and try again.
    39  	ErrCodeUnsupportedOperationException = "UnsupportedOperationException"
    40  )
    41  
    42  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    43  	"ConflictException":             newErrorConflictException,
    44  	"LimitExceededException":        newErrorLimitExceededException,
    45  	"ResourceNotFoundException":     newErrorResourceNotFoundException,
    46  	"ResourceUnavailableException":  newErrorResourceUnavailableException,
    47  	"UnsupportedOperationException": newErrorUnsupportedOperationException,
    48  }