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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package worklink
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeInternalServerErrorException for service response error code
    12  	// "InternalServerErrorException".
    13  	//
    14  	// The service is temporarily unavailable.
    15  	ErrCodeInternalServerErrorException = "InternalServerErrorException"
    16  
    17  	// ErrCodeInvalidRequestException for service response error code
    18  	// "InvalidRequestException".
    19  	//
    20  	// The request is not valid.
    21  	ErrCodeInvalidRequestException = "InvalidRequestException"
    22  
    23  	// ErrCodeResourceAlreadyExistsException for service response error code
    24  	// "ResourceAlreadyExistsException".
    25  	//
    26  	// The resource already exists.
    27  	ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException"
    28  
    29  	// ErrCodeResourceNotFoundException for service response error code
    30  	// "ResourceNotFoundException".
    31  	//
    32  	// The requested resource was not found.
    33  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    34  
    35  	// ErrCodeTooManyRequestsException for service response error code
    36  	// "TooManyRequestsException".
    37  	//
    38  	// The number of requests exceeds the limit.
    39  	ErrCodeTooManyRequestsException = "TooManyRequestsException"
    40  
    41  	// ErrCodeUnauthorizedException for service response error code
    42  	// "UnauthorizedException".
    43  	//
    44  	// You are not authorized to perform this action.
    45  	ErrCodeUnauthorizedException = "UnauthorizedException"
    46  )
    47  
    48  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    49  	"InternalServerErrorException":   newErrorInternalServerErrorException,
    50  	"InvalidRequestException":        newErrorInvalidRequestException,
    51  	"ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException,
    52  	"ResourceNotFoundException":      newErrorResourceNotFoundException,
    53  	"TooManyRequestsException":       newErrorTooManyRequestsException,
    54  	"UnauthorizedException":          newErrorUnauthorizedException,
    55  }