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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package pi
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeInternalServiceError for service response error code
    12  	// "InternalServiceError".
    13  	//
    14  	// The request failed due to an unknown error.
    15  	ErrCodeInternalServiceError = "InternalServiceError"
    16  
    17  	// ErrCodeInvalidArgumentException for service response error code
    18  	// "InvalidArgumentException".
    19  	//
    20  	// One of the arguments provided is invalid for this request.
    21  	ErrCodeInvalidArgumentException = "InvalidArgumentException"
    22  
    23  	// ErrCodeNotAuthorizedException for service response error code
    24  	// "NotAuthorizedException".
    25  	//
    26  	// The user is not authorized to perform this request.
    27  	ErrCodeNotAuthorizedException = "NotAuthorizedException"
    28  )
    29  
    30  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    31  	"InternalServiceError":     newErrorInternalServiceError,
    32  	"InvalidArgumentException": newErrorInvalidArgumentException,
    33  	"NotAuthorizedException":   newErrorNotAuthorizedException,
    34  }