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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package elastictranscoder
     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  	// General authentication failure. The request was not signed correctly.
    15  	ErrCodeAccessDeniedException = "AccessDeniedException"
    16  
    17  	// ErrCodeIncompatibleVersionException for service response error code
    18  	// "IncompatibleVersionException".
    19  	ErrCodeIncompatibleVersionException = "IncompatibleVersionException"
    20  
    21  	// ErrCodeInternalServiceException for service response error code
    22  	// "InternalServiceException".
    23  	//
    24  	// Elastic Transcoder encountered an unexpected exception while trying to fulfill
    25  	// the request.
    26  	ErrCodeInternalServiceException = "InternalServiceException"
    27  
    28  	// ErrCodeLimitExceededException for service response error code
    29  	// "LimitExceededException".
    30  	//
    31  	// Too many operations for a given AWS account. For example, the number of pipelines
    32  	// exceeds the maximum allowed.
    33  	ErrCodeLimitExceededException = "LimitExceededException"
    34  
    35  	// ErrCodeResourceInUseException for service response error code
    36  	// "ResourceInUseException".
    37  	//
    38  	// The resource you are attempting to change is in use. For example, you are
    39  	// attempting to delete a pipeline that is currently in use.
    40  	ErrCodeResourceInUseException = "ResourceInUseException"
    41  
    42  	// ErrCodeResourceNotFoundException for service response error code
    43  	// "ResourceNotFoundException".
    44  	//
    45  	// The requested resource does not exist or is not available. For example, the
    46  	// pipeline to which you're trying to add a job doesn't exist or is still being
    47  	// created.
    48  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    49  
    50  	// ErrCodeValidationException for service response error code
    51  	// "ValidationException".
    52  	//
    53  	// One or more required parameter values were not provided in the request.
    54  	ErrCodeValidationException = "ValidationException"
    55  )
    56  
    57  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    58  	"AccessDeniedException":        newErrorAccessDeniedException,
    59  	"IncompatibleVersionException": newErrorIncompatibleVersionException,
    60  	"InternalServiceException":     newErrorInternalServiceException,
    61  	"LimitExceededException":       newErrorLimitExceededException,
    62  	"ResourceInUseException":       newErrorResourceInUseException,
    63  	"ResourceNotFoundException":    newErrorResourceNotFoundException,
    64  	"ValidationException":          newErrorValidationException,
    65  }