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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package qldb
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeInvalidParameterException for service response error code
    12  	// "InvalidParameterException".
    13  	//
    14  	// One or more parameters in the request aren't valid.
    15  	ErrCodeInvalidParameterException = "InvalidParameterException"
    16  
    17  	// ErrCodeLimitExceededException for service response error code
    18  	// "LimitExceededException".
    19  	//
    20  	// You have reached the limit on the maximum number of resources allowed.
    21  	ErrCodeLimitExceededException = "LimitExceededException"
    22  
    23  	// ErrCodeResourceAlreadyExistsException for service response error code
    24  	// "ResourceAlreadyExistsException".
    25  	//
    26  	// The specified resource already exists.
    27  	ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException"
    28  
    29  	// ErrCodeResourceInUseException for service response error code
    30  	// "ResourceInUseException".
    31  	//
    32  	// The specified resource can't be modified at this time.
    33  	ErrCodeResourceInUseException = "ResourceInUseException"
    34  
    35  	// ErrCodeResourceNotFoundException for service response error code
    36  	// "ResourceNotFoundException".
    37  	//
    38  	// The specified resource doesn't exist.
    39  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    40  
    41  	// ErrCodeResourcePreconditionNotMetException for service response error code
    42  	// "ResourcePreconditionNotMetException".
    43  	//
    44  	// The operation failed because a condition wasn't satisfied in advance.
    45  	ErrCodeResourcePreconditionNotMetException = "ResourcePreconditionNotMetException"
    46  )
    47  
    48  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    49  	"InvalidParameterException":           newErrorInvalidParameterException,
    50  	"LimitExceededException":              newErrorLimitExceededException,
    51  	"ResourceAlreadyExistsException":      newErrorResourceAlreadyExistsException,
    52  	"ResourceInUseException":              newErrorResourceInUseException,
    53  	"ResourceNotFoundException":           newErrorResourceNotFoundException,
    54  	"ResourcePreconditionNotMetException": newErrorResourcePreconditionNotMetException,
    55  }