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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package datasync
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeInternalException for service response error code
    12  	// "InternalException".
    13  	//
    14  	// This exception is thrown when an error occurs in the DataSync service.
    15  	ErrCodeInternalException = "InternalException"
    16  
    17  	// ErrCodeInvalidRequestException for service response error code
    18  	// "InvalidRequestException".
    19  	//
    20  	// This exception is thrown when the client submits a malformed request.
    21  	ErrCodeInvalidRequestException = "InvalidRequestException"
    22  )
    23  
    24  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    25  	"InternalException":       newErrorInternalException,
    26  	"InvalidRequestException": newErrorInvalidRequestException,
    27  }