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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package lookoutequipment
     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 could not be completed because you do not have access to the
    15  	// resource.
    16  	ErrCodeAccessDeniedException = "AccessDeniedException"
    17  
    18  	// ErrCodeConflictException for service response error code
    19  	// "ConflictException".
    20  	//
    21  	// The request could not be completed due to a conflict with the current state
    22  	// of the target resource.
    23  	ErrCodeConflictException = "ConflictException"
    24  
    25  	// ErrCodeInternalServerException for service response error code
    26  	// "InternalServerException".
    27  	//
    28  	// Processing of the request has failed because of an unknown error, exception
    29  	// or failure.
    30  	ErrCodeInternalServerException = "InternalServerException"
    31  
    32  	// ErrCodeResourceNotFoundException for service response error code
    33  	// "ResourceNotFoundException".
    34  	//
    35  	// The resource requested could not be found. Verify the resource ID and retry
    36  	// your request.
    37  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    38  
    39  	// ErrCodeServiceQuotaExceededException for service response error code
    40  	// "ServiceQuotaExceededException".
    41  	//
    42  	// Resource limitations have been exceeded.
    43  	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
    44  
    45  	// ErrCodeThrottlingException for service response error code
    46  	// "ThrottlingException".
    47  	//
    48  	// The request was denied due to request throttling.
    49  	ErrCodeThrottlingException = "ThrottlingException"
    50  
    51  	// ErrCodeValidationException for service response error code
    52  	// "ValidationException".
    53  	//
    54  	// The input fails to satisfy constraints specified by Amazon Lookout for Equipment
    55  	// or a related AWS service that's being utilized.
    56  	ErrCodeValidationException = "ValidationException"
    57  )
    58  
    59  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    60  	"AccessDeniedException":         newErrorAccessDeniedException,
    61  	"ConflictException":             newErrorConflictException,
    62  	"InternalServerException":       newErrorInternalServerException,
    63  	"ResourceNotFoundException":     newErrorResourceNotFoundException,
    64  	"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
    65  	"ThrottlingException":           newErrorThrottlingException,
    66  	"ValidationException":           newErrorValidationException,
    67  }