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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package transcribestreamingservice
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeBadRequestException for service response error code
    12  	// "BadRequestException".
    13  	//
    14  	// One or more arguments to the StartStreamTranscription or StartMedicalStreamTranscription
    15  	// operation was invalid. For example, MediaEncoding was not set to a valid
    16  	// encoding, or LanguageCode was not set to a valid code. Check the parameters
    17  	// and try your request again.
    18  	ErrCodeBadRequestException = "BadRequestException"
    19  
    20  	// ErrCodeConflictException for service response error code
    21  	// "ConflictException".
    22  	//
    23  	// A new stream started with the same session ID. The current stream has been
    24  	// terminated.
    25  	ErrCodeConflictException = "ConflictException"
    26  
    27  	// ErrCodeInternalFailureException for service response error code
    28  	// "InternalFailureException".
    29  	//
    30  	// A problem occurred while processing the audio. Amazon Transcribe or Amazon
    31  	// Transcribe Medical terminated processing. Try your request again.
    32  	ErrCodeInternalFailureException = "InternalFailureException"
    33  
    34  	// ErrCodeLimitExceededException for service response error code
    35  	// "LimitExceededException".
    36  	//
    37  	// You have exceeded the maximum number of concurrent transcription streams,
    38  	// are starting transcription streams too quickly, or the maximum audio length
    39  	// of 4 hours. Wait until a stream has finished processing, or break your audio
    40  	// stream into smaller chunks and try your request again.
    41  	ErrCodeLimitExceededException = "LimitExceededException"
    42  
    43  	// ErrCodeServiceUnavailableException for service response error code
    44  	// "ServiceUnavailableException".
    45  	//
    46  	// Service is currently unavailable. Try your request later.
    47  	ErrCodeServiceUnavailableException = "ServiceUnavailableException"
    48  )
    49  
    50  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    51  	"BadRequestException":         newErrorBadRequestException,
    52  	"ConflictException":           newErrorConflictException,
    53  	"InternalFailureException":    newErrorInternalFailureException,
    54  	"LimitExceededException":      newErrorLimitExceededException,
    55  	"ServiceUnavailableException": newErrorServiceUnavailableException,
    56  }