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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package mediastoredata
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeContainerNotFoundException for service response error code
    12  	// "ContainerNotFoundException".
    13  	//
    14  	// The specified container was not found for the specified account.
    15  	ErrCodeContainerNotFoundException = "ContainerNotFoundException"
    16  
    17  	// ErrCodeInternalServerError for service response error code
    18  	// "InternalServerError".
    19  	//
    20  	// The service is temporarily unavailable.
    21  	ErrCodeInternalServerError = "InternalServerError"
    22  
    23  	// ErrCodeObjectNotFoundException for service response error code
    24  	// "ObjectNotFoundException".
    25  	//
    26  	// Could not perform an operation on an object that does not exist.
    27  	ErrCodeObjectNotFoundException = "ObjectNotFoundException"
    28  
    29  	// ErrCodeRequestedRangeNotSatisfiableException for service response error code
    30  	// "RequestedRangeNotSatisfiableException".
    31  	//
    32  	// The requested content range is not valid.
    33  	ErrCodeRequestedRangeNotSatisfiableException = "RequestedRangeNotSatisfiableException"
    34  )
    35  
    36  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    37  	"ContainerNotFoundException":            newErrorContainerNotFoundException,
    38  	"InternalServerError":                   newErrorInternalServerError,
    39  	"ObjectNotFoundException":               newErrorObjectNotFoundException,
    40  	"RequestedRangeNotSatisfiableException": newErrorRequestedRangeNotSatisfiableException,
    41  }