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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package identitystore
     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 with an internal server.
    22  	ErrCodeInternalServerException = "InternalServerException"
    23  
    24  	// ErrCodeResourceNotFoundException for service response error code
    25  	// "ResourceNotFoundException".
    26  	//
    27  	// Indicates that a requested resource is not found.
    28  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    29  
    30  	// ErrCodeThrottlingException for service response error code
    31  	// "ThrottlingException".
    32  	//
    33  	// Indicates that the principal has crossed the throttling limits of the API
    34  	// operations.
    35  	ErrCodeThrottlingException = "ThrottlingException"
    36  
    37  	// ErrCodeValidationException for service response error code
    38  	// "ValidationException".
    39  	//
    40  	// The request failed because it contains a syntax error.
    41  	ErrCodeValidationException = "ValidationException"
    42  )
    43  
    44  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    45  	"AccessDeniedException":     newErrorAccessDeniedException,
    46  	"InternalServerException":   newErrorInternalServerException,
    47  	"ResourceNotFoundException": newErrorResourceNotFoundException,
    48  	"ThrottlingException":       newErrorThrottlingException,
    49  	"ValidationException":       newErrorValidationException,
    50  }