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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package locationservice
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeAccessDeniedException for service response error code
    12  	// "AccessDeniedException".
    13  	//
    14  	// The request was denied because of insufficient access or permissions. Check
    15  	// with an administrator to verify your permissions.
    16  	ErrCodeAccessDeniedException = "AccessDeniedException"
    17  
    18  	// ErrCodeConflictException for service response error code
    19  	// "ConflictException".
    20  	//
    21  	// The request was unsuccessful because of a conflict.
    22  	ErrCodeConflictException = "ConflictException"
    23  
    24  	// ErrCodeInternalServerException for service response error code
    25  	// "InternalServerException".
    26  	//
    27  	// The request has failed to process because of an unknown server error, exception,
    28  	// or failure.
    29  	ErrCodeInternalServerException = "InternalServerException"
    30  
    31  	// ErrCodeResourceNotFoundException for service response error code
    32  	// "ResourceNotFoundException".
    33  	//
    34  	// The resource that you've entered was not found in your AWS account.
    35  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    36  
    37  	// ErrCodeServiceQuotaExceededException for service response error code
    38  	// "ServiceQuotaExceededException".
    39  	//
    40  	// The operation was denied because the request would exceed the maximum quota
    41  	// (https://docs.aws.amazon.com/location/latest/developerguide/location-quotas.html)
    42  	// set for Amazon Location Service.
    43  	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
    44  
    45  	// ErrCodeThrottlingException for service response error code
    46  	// "ThrottlingException".
    47  	//
    48  	// The request was denied because of request throttling.
    49  	ErrCodeThrottlingException = "ThrottlingException"
    50  
    51  	// ErrCodeValidationException for service response error code
    52  	// "ValidationException".
    53  	//
    54  	// The input failed to meet the constraints specified by the AWS service.
    55  	ErrCodeValidationException = "ValidationException"
    56  )
    57  
    58  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    59  	"AccessDeniedException":         newErrorAccessDeniedException,
    60  	"ConflictException":             newErrorConflictException,
    61  	"InternalServerException":       newErrorInternalServerException,
    62  	"ResourceNotFoundException":     newErrorResourceNotFoundException,
    63  	"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
    64  	"ThrottlingException":           newErrorThrottlingException,
    65  	"ValidationException":           newErrorValidationException,
    66  }