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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package amplify
     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  	// A request contains unexpected data.
    15  	ErrCodeBadRequestException = "BadRequestException"
    16  
    17  	// ErrCodeDependentServiceFailureException for service response error code
    18  	// "DependentServiceFailureException".
    19  	//
    20  	// An operation failed because a dependent service threw an exception.
    21  	ErrCodeDependentServiceFailureException = "DependentServiceFailureException"
    22  
    23  	// ErrCodeInternalFailureException for service response error code
    24  	// "InternalFailureException".
    25  	//
    26  	// The service failed to perform an operation due to an internal issue.
    27  	ErrCodeInternalFailureException = "InternalFailureException"
    28  
    29  	// ErrCodeLimitExceededException for service response error code
    30  	// "LimitExceededException".
    31  	//
    32  	// A resource could not be created because service quotas were exceeded.
    33  	ErrCodeLimitExceededException = "LimitExceededException"
    34  
    35  	// ErrCodeNotFoundException for service response error code
    36  	// "NotFoundException".
    37  	//
    38  	// An entity was not found during an operation.
    39  	ErrCodeNotFoundException = "NotFoundException"
    40  
    41  	// ErrCodeResourceNotFoundException for service response error code
    42  	// "ResourceNotFoundException".
    43  	//
    44  	// An operation failed due to a non-existent resource.
    45  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    46  
    47  	// ErrCodeUnauthorizedException for service response error code
    48  	// "UnauthorizedException".
    49  	//
    50  	// An operation failed due to a lack of access.
    51  	ErrCodeUnauthorizedException = "UnauthorizedException"
    52  )
    53  
    54  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    55  	"BadRequestException":              newErrorBadRequestException,
    56  	"DependentServiceFailureException": newErrorDependentServiceFailureException,
    57  	"InternalFailureException":         newErrorInternalFailureException,
    58  	"LimitExceededException":           newErrorLimitExceededException,
    59  	"NotFoundException":                newErrorNotFoundException,
    60  	"ResourceNotFoundException":        newErrorResourceNotFoundException,
    61  	"UnauthorizedException":            newErrorUnauthorizedException,
    62  }