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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package iotwireless
     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  	// User does not have permission to perform this action.
    15  	ErrCodeAccessDeniedException = "AccessDeniedException"
    16  
    17  	// ErrCodeConflictException for service response error code
    18  	// "ConflictException".
    19  	//
    20  	// Adding, updating, or deleting the resource can cause an inconsistent state.
    21  	ErrCodeConflictException = "ConflictException"
    22  
    23  	// ErrCodeInternalServerException for service response error code
    24  	// "InternalServerException".
    25  	//
    26  	// An unexpected error occurred while processing a request.
    27  	ErrCodeInternalServerException = "InternalServerException"
    28  
    29  	// ErrCodeResourceNotFoundException for service response error code
    30  	// "ResourceNotFoundException".
    31  	//
    32  	// Resource does not exist.
    33  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    34  
    35  	// ErrCodeThrottlingException for service response error code
    36  	// "ThrottlingException".
    37  	//
    38  	// The request was denied because it exceeded the allowed API request rate.
    39  	ErrCodeThrottlingException = "ThrottlingException"
    40  
    41  	// ErrCodeTooManyTagsException for service response error code
    42  	// "TooManyTagsException".
    43  	//
    44  	// The request was denied because the resource can't have any more tags.
    45  	ErrCodeTooManyTagsException = "TooManyTagsException"
    46  
    47  	// ErrCodeValidationException for service response error code
    48  	// "ValidationException".
    49  	//
    50  	// The input did not meet the specified constraints.
    51  	ErrCodeValidationException = "ValidationException"
    52  )
    53  
    54  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    55  	"AccessDeniedException":     newErrorAccessDeniedException,
    56  	"ConflictException":         newErrorConflictException,
    57  	"InternalServerException":   newErrorInternalServerException,
    58  	"ResourceNotFoundException": newErrorResourceNotFoundException,
    59  	"ThrottlingException":       newErrorThrottlingException,
    60  	"TooManyTagsException":      newErrorTooManyTagsException,
    61  	"ValidationException":       newErrorValidationException,
    62  }