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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package finspacedata
     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 do not have sufficient access to perform this action.
    15  	ErrCodeAccessDeniedException = "AccessDeniedException"
    16  
    17  	// ErrCodeInternalServerException for service response error code
    18  	// "InternalServerException".
    19  	//
    20  	// The request processing has failed because of an unknown error, exception
    21  	// or failure.
    22  	ErrCodeInternalServerException = "InternalServerException"
    23  
    24  	// ErrCodeResourceNotFoundException for service response error code
    25  	// "ResourceNotFoundException".
    26  	//
    27  	// One or more resources can't be found.
    28  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    29  
    30  	// ErrCodeThrottlingException for service response error code
    31  	// "ThrottlingException".
    32  	//
    33  	// The request was denied due to request throttling.
    34  	ErrCodeThrottlingException = "ThrottlingException"
    35  
    36  	// ErrCodeValidationException for service response error code
    37  	// "ValidationException".
    38  	//
    39  	// The input fails to satisfy the constraints specified by an AWS service.
    40  	ErrCodeValidationException = "ValidationException"
    41  )
    42  
    43  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    44  	"AccessDeniedException":     newErrorAccessDeniedException,
    45  	"InternalServerException":   newErrorInternalServerException,
    46  	"ResourceNotFoundException": newErrorResourceNotFoundException,
    47  	"ThrottlingException":       newErrorThrottlingException,
    48  	"ValidationException":       newErrorValidationException,
    49  }