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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package macie2
     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  	// Provides information about an error that occurred due to insufficient access
    15  	// to a specified resource.
    16  	ErrCodeAccessDeniedException = "AccessDeniedException"
    17  
    18  	// ErrCodeConflictException for service response error code
    19  	// "ConflictException".
    20  	//
    21  	// Provides information about an error that occurred due to a versioning conflict
    22  	// for a specified resource.
    23  	ErrCodeConflictException = "ConflictException"
    24  
    25  	// ErrCodeInternalServerException for service response error code
    26  	// "InternalServerException".
    27  	//
    28  	// Provides information about an error that occurred due to an unknown internal
    29  	// server error, exception, or failure.
    30  	ErrCodeInternalServerException = "InternalServerException"
    31  
    32  	// ErrCodeResourceNotFoundException for service response error code
    33  	// "ResourceNotFoundException".
    34  	//
    35  	// Provides information about an error that occurred because a specified resource
    36  	// wasn't found.
    37  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    38  
    39  	// ErrCodeServiceQuotaExceededException for service response error code
    40  	// "ServiceQuotaExceededException".
    41  	//
    42  	// Provides information about an error that occurred due to one or more service
    43  	// quotas for an account.
    44  	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
    45  
    46  	// ErrCodeThrottlingException for service response error code
    47  	// "ThrottlingException".
    48  	//
    49  	// Provides information about an error that occurred because too many requests
    50  	// were sent during a certain amount of time.
    51  	ErrCodeThrottlingException = "ThrottlingException"
    52  
    53  	// ErrCodeValidationException for service response error code
    54  	// "ValidationException".
    55  	//
    56  	// Provides information about an error that occurred due to a syntax error in
    57  	// a request.
    58  	ErrCodeValidationException = "ValidationException"
    59  )
    60  
    61  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    62  	"AccessDeniedException":         newErrorAccessDeniedException,
    63  	"ConflictException":             newErrorConflictException,
    64  	"InternalServerException":       newErrorInternalServerException,
    65  	"ResourceNotFoundException":     newErrorResourceNotFoundException,
    66  	"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
    67  	"ThrottlingException":           newErrorThrottlingException,
    68  	"ValidationException":           newErrorValidationException,
    69  }