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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package amplifybackend
     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  	// An error returned if a request is not formed properly.
    15  	ErrCodeBadRequestException = "BadRequestException"
    16  
    17  	// ErrCodeGatewayTimeoutException for service response error code
    18  	// "GatewayTimeoutException".
    19  	//
    20  	// An error returned if there's a temporary issue with the service.
    21  	ErrCodeGatewayTimeoutException = "GatewayTimeoutException"
    22  
    23  	// ErrCodeNotFoundException for service response error code
    24  	// "NotFoundException".
    25  	//
    26  	// An error returned when a specific resource type is not found.
    27  	ErrCodeNotFoundException = "NotFoundException"
    28  
    29  	// ErrCodeTooManyRequestsException for service response error code
    30  	// "TooManyRequestsException".
    31  	//
    32  	// An error that is returned when a limit of a specific type has been exceeded.
    33  	ErrCodeTooManyRequestsException = "TooManyRequestsException"
    34  )
    35  
    36  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    37  	"BadRequestException":      newErrorBadRequestException,
    38  	"GatewayTimeoutException":  newErrorGatewayTimeoutException,
    39  	"NotFoundException":        newErrorNotFoundException,
    40  	"TooManyRequestsException": newErrorTooManyRequestsException,
    41  }