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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package mturk
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeRequestError for service response error code
    12  	// "RequestError".
    13  	//
    14  	// Your request is invalid.
    15  	ErrCodeRequestError = "RequestError"
    16  
    17  	// ErrCodeServiceFault for service response error code
    18  	// "ServiceFault".
    19  	//
    20  	// Amazon Mechanical Turk is temporarily unable to process your request. Try
    21  	// your call again.
    22  	ErrCodeServiceFault = "ServiceFault"
    23  )
    24  
    25  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    26  	"RequestError": newErrorRequestError,
    27  	"ServiceFault": newErrorServiceFault,
    28  }