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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package timestreamquery
     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  	// You are not authorized to perform this action.
    15  	ErrCodeAccessDeniedException = "AccessDeniedException"
    16  
    17  	// ErrCodeConflictException for service response error code
    18  	// "ConflictException".
    19  	//
    20  	// Unable to poll results for a cancelled query.
    21  	ErrCodeConflictException = "ConflictException"
    22  
    23  	// ErrCodeInternalServerException for service response error code
    24  	// "InternalServerException".
    25  	//
    26  	// Timestream was unable to fully process this request because of an internal
    27  	// server error.
    28  	ErrCodeInternalServerException = "InternalServerException"
    29  
    30  	// ErrCodeInvalidEndpointException for service response error code
    31  	// "InvalidEndpointException".
    32  	//
    33  	// The requested endpoint was invalid.
    34  	ErrCodeInvalidEndpointException = "InvalidEndpointException"
    35  
    36  	// ErrCodeQueryExecutionException for service response error code
    37  	// "QueryExecutionException".
    38  	//
    39  	// Timestream was unable to run the query successfully.
    40  	ErrCodeQueryExecutionException = "QueryExecutionException"
    41  
    42  	// ErrCodeThrottlingException for service response error code
    43  	// "ThrottlingException".
    44  	//
    45  	// The request was denied due to request throttling.
    46  	ErrCodeThrottlingException = "ThrottlingException"
    47  
    48  	// ErrCodeValidationException for service response error code
    49  	// "ValidationException".
    50  	//
    51  	// Invalid or malformed request.
    52  	ErrCodeValidationException = "ValidationException"
    53  )
    54  
    55  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    56  	"AccessDeniedException":    newErrorAccessDeniedException,
    57  	"ConflictException":        newErrorConflictException,
    58  	"InternalServerException":  newErrorInternalServerException,
    59  	"InvalidEndpointException": newErrorInvalidEndpointException,
    60  	"QueryExecutionException":  newErrorQueryExecutionException,
    61  	"ThrottlingException":      newErrorThrottlingException,
    62  	"ValidationException":      newErrorValidationException,
    63  }