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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package cloudhsm
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeCloudHsmInternalException for service response error code
    12  	// "CloudHsmInternalException".
    13  	//
    14  	// Indicates that an internal error occurred.
    15  	ErrCodeCloudHsmInternalException = "CloudHsmInternalException"
    16  
    17  	// ErrCodeCloudHsmServiceException for service response error code
    18  	// "CloudHsmServiceException".
    19  	//
    20  	// Indicates that an exception occurred in the AWS CloudHSM service.
    21  	ErrCodeCloudHsmServiceException = "CloudHsmServiceException"
    22  
    23  	// ErrCodeInvalidRequestException for service response error code
    24  	// "InvalidRequestException".
    25  	//
    26  	// Indicates that one or more of the request parameters are not valid.
    27  	ErrCodeInvalidRequestException = "InvalidRequestException"
    28  )
    29  
    30  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    31  	"CloudHsmInternalException": newErrorCloudHsmInternalException,
    32  	"CloudHsmServiceException":  newErrorCloudHsmServiceException,
    33  	"InvalidRequestException":   newErrorInvalidRequestException,
    34  }