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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package mediastore
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeContainerInUseException for service response error code
    12  	// "ContainerInUseException".
    13  	//
    14  	// The container that you specified in the request already exists or is being
    15  	// updated.
    16  	ErrCodeContainerInUseException = "ContainerInUseException"
    17  
    18  	// ErrCodeContainerNotFoundException for service response error code
    19  	// "ContainerNotFoundException".
    20  	//
    21  	// The container that you specified in the request does not exist.
    22  	ErrCodeContainerNotFoundException = "ContainerNotFoundException"
    23  
    24  	// ErrCodeCorsPolicyNotFoundException for service response error code
    25  	// "CorsPolicyNotFoundException".
    26  	//
    27  	// The CORS policy that you specified in the request does not exist.
    28  	ErrCodeCorsPolicyNotFoundException = "CorsPolicyNotFoundException"
    29  
    30  	// ErrCodeInternalServerError for service response error code
    31  	// "InternalServerError".
    32  	//
    33  	// The service is temporarily unavailable.
    34  	ErrCodeInternalServerError = "InternalServerError"
    35  
    36  	// ErrCodeLimitExceededException for service response error code
    37  	// "LimitExceededException".
    38  	//
    39  	// A service limit has been exceeded.
    40  	ErrCodeLimitExceededException = "LimitExceededException"
    41  
    42  	// ErrCodePolicyNotFoundException for service response error code
    43  	// "PolicyNotFoundException".
    44  	//
    45  	// The policy that you specified in the request does not exist.
    46  	ErrCodePolicyNotFoundException = "PolicyNotFoundException"
    47  )
    48  
    49  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    50  	"ContainerInUseException":     newErrorContainerInUseException,
    51  	"ContainerNotFoundException":  newErrorContainerNotFoundException,
    52  	"CorsPolicyNotFoundException": newErrorCorsPolicyNotFoundException,
    53  	"InternalServerError":         newErrorInternalServerError,
    54  	"LimitExceededException":      newErrorLimitExceededException,
    55  	"PolicyNotFoundException":     newErrorPolicyNotFoundException,
    56  }