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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package lookoutforvision
     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 the action.
    15  	ErrCodeAccessDeniedException = "AccessDeniedException"
    16  
    17  	// ErrCodeConflictException for service response error code
    18  	// "ConflictException".
    19  	//
    20  	// The update or deletion of a resource caused an inconsistent state.
    21  	ErrCodeConflictException = "ConflictException"
    22  
    23  	// ErrCodeInternalServerException for service response error code
    24  	// "InternalServerException".
    25  	//
    26  	// Amazon Lookout for Vision experienced a service issue. Try your call again.
    27  	ErrCodeInternalServerException = "InternalServerException"
    28  
    29  	// ErrCodeResourceNotFoundException for service response error code
    30  	// "ResourceNotFoundException".
    31  	//
    32  	// The resource could not be found.
    33  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    34  
    35  	// ErrCodeServiceQuotaExceededException for service response error code
    36  	// "ServiceQuotaExceededException".
    37  	//
    38  	// A service quota was exceeded the allowed limit. For more information, see
    39  	// Limits in Amazon Lookout for Vision in the Amazon Lookout for Vision Developer
    40  	// Guide.
    41  	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
    42  
    43  	// ErrCodeThrottlingException for service response error code
    44  	// "ThrottlingException".
    45  	//
    46  	// Amazon Lookout for Vision is temporarily unable to process the request. Try
    47  	// your call again.
    48  	ErrCodeThrottlingException = "ThrottlingException"
    49  
    50  	// ErrCodeValidationException for service response error code
    51  	// "ValidationException".
    52  	//
    53  	// An input validation error occured. For example, invalid characters in a project
    54  	// name, or if a pagination token is invalid.
    55  	ErrCodeValidationException = "ValidationException"
    56  )
    57  
    58  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    59  	"AccessDeniedException":         newErrorAccessDeniedException,
    60  	"ConflictException":             newErrorConflictException,
    61  	"InternalServerException":       newErrorInternalServerException,
    62  	"ResourceNotFoundException":     newErrorResourceNotFoundException,
    63  	"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
    64  	"ThrottlingException":           newErrorThrottlingException,
    65  	"ValidationException":           newErrorValidationException,
    66  }